After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 733345 - ginetaddress: Add a precondition to g_inet_address_new_from_string()
ginetaddress: Add a precondition to g_inet_address_new_from_string()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: network
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-07-18 07:50 UTC by Philip Withnall
Modified: 2014-07-18 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ginetaddress: Add a precondition to g_inet_address_new_from_string() (918 bytes, patch)
2014-07-18 07:50 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2014-07-18 07:50:16 UTC
Trivial patch attached.
Comment 1 Philip Withnall 2014-07-18 07:50:19 UTC
Created attachment 281061 [details] [review]
ginetaddress: Add a precondition to g_inet_address_new_from_string()

Ensure that the input string is non-NULL, as inet_pton() does not like
NULL strings.
Comment 2 Philip Withnall 2014-07-18 14:08:23 UTC
Attachment 281061 [details] pushed as ebe4782 - ginetaddress: Add a precondition to g_inet_address_new_from_string()