GNOME Bugzilla – Bug 700297
bliptv: Fix crash when browsing on 64-bit platforms
Last modified: 2013-05-15 07:34:31 UTC
.
Created attachment 244172 [details] [review] bliptv: Fix crash when browsing on 64-bit platforms gsize on 64-bit platforms is a 64-bit integer. Trying to fit a 64-bit integer in the 32-bit integer we were passed trashed the pointer of the previous return parameter, in this case the buffer's address. Pass a pointer to correctly sized integer to avoid this memory corruption and cast it later as needed.
Created attachment 244173 [details] [review] raitv: Fix crasher on 64-bit platforms gsize on 64-bit platforms is a 64-bit integer. Trying to fit a 64-bit integer in the 32-bit integer we were passed trashed the pointer of the previous return parameter, in this case the buffer's address. Pass a pointer to correctly sized integer to avoid this memory corruption and cast it later as needed.
commit 2a3958619c174010ecc75e440387ca85217a3288 Author: Bastien Nocera <hadess@hadess.net> Date: Tue May 14 15:24:41 2013 +0200 raitv: Fix crasher on 64-bit platforms gsize on 64-bit platforms is a 64-bit integer. Trying to fit a 64-bit integer in the 32-bit integer we were passed trashed the pointer of the previous return parameter, in this case the buffer's address. Pass a pointer to correctly sized integer to avoid this memory corruption and cast it later as needed. https://bugzilla.gnome.org/show_bug.cgi?id=700297 src/raitv/grl-raitv.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit a406cd005dfe4bfd0bb817e67e6b6b2d8f20c0ed Author: Bastien Nocera <hadess@hadess.net> Date: Tue May 14 15:22:00 2013 +0200 bliptv: Fix crash when browsing on 64-bit platforms gsize on 64-bit platforms is a 64-bit integer. Trying to fit a 64-bit integer in the 32-bit integer we were passed trashed the pointer of the previous return parameter, in this case the buffer's address. Pass a pointer to correctly sized integer to avoid this memory corruption and cast it later as needed. https://bugzilla.gnome.org/show_bug.cgi?id=700297 src/bliptv/grl-bliptv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Attachment 244172 [details] pushed as a406cd0 - bliptv: Fix crash when browsing on 64-bit platforms Attachment 244173 [details] pushed as 2a39586 - raitv: Fix crasher on 64-bit platforms