GNOME Bugzilla – Bug 737777
Applications crash randomly while printing with a password-secured SMB printer
Last modified: 2014-10-07 22:56:12 UTC
I have encountered a strange crash during backporting of https://git.gnome.org/browse/gtk+/commit/?id=382d68ff8e5701a10aa8d4f879c46c63c21e075f According to my analysis the problem was that auth_info array was not null-terminated causing crash in g_strdupv call (modules/printbackends/cups/gtkcupssecretsutils.c:1035). This array should size should be allocated bigger by 1 and NULL-terminated. Will attach patch shortly.
The crash consistently happens with firefox on Ubuntu amd64 14.04 using gtk with the mentioned fix backported from my ppa: ppa:dgadomski/gtk. On other gtk2 applications (I have tested dia and medit) it did not crash, probably by accident. Firefox must be causing a different memory layout making this crash to occur.
Created attachment 287576 [details] [review] Fix for the master branch.
Created attachment 287577 [details] [review] Fix for the master branch. I have added a link to this back in the patch description.