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 554141 - uninitialized data use/free in gtkclipboard-quartz.c
uninitialized data use/free in gtkclipboard-quartz.c
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Quartz
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-28 08:16 UTC by Jon A. Cruz
Modified: 2008-09-29 10:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to avoid uninitialized pointer free (485 bytes, patch)
2008-09-28 08:19 UTC, Jon A. Cruz
accepted-commit_now Details | Review

Description Jon A. Cruz 2008-09-28 08:16:53 UTC
selection_data in gtkclipboard-quartz.c is not cleared when allocated, and results in warnings from freeing random data on OS X 10.4.
Comment 1 Jon A. Cruz 2008-09-28 08:19:21 UTC
Created attachment 119516 [details] [review]
Patch to avoid uninitialized pointer free

clears members to avoid problems with freeing random values.
Comment 2 Matthias Clasen 2008-09-28 18:37:59 UTC
Looks fine, please commit.
Comment 3 Richard Hult 2008-09-29 10:52:31 UTC
Thanks Jon, I've committed to trunk and 2.14 branch.