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 731988 - glocalfile: Avoid a potential NULL pointer dereference
glocalfile: Avoid a potential NULL pointer dereference
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-06-20 20:25 UTC by Philip Withnall
Modified: 2016-04-02 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glocalfile: Avoid a potential NULL pointer dereference (913 bytes, patch)
2014-06-20 20:25 UTC, Philip Withnall
none Details | Review

Description Philip Withnall 2014-06-20 20:25:52 UTC
Depends on how the filename is canonicalised, but if it somehow ends up
being a non-absolute filename, g_path_skip_root() will return NULL.
Comment 1 Philip Withnall 2014-06-20 20:25:54 UTC
Created attachment 278871 [details] [review]
glocalfile: Avoid a potential NULL pointer dereference
Comment 2 Philip Withnall 2016-04-02 11:33:09 UTC
Pushed anyway, with changes, since this should be fairly uncontroversial.