[Image-SIG] buggy use of realloc()

Jan Matejek jmatejek at suse.cz
Wed Dec 21 16:48:45 CET 2005


Hi,
in the one place where you use realloc() in PIL, you ignore its return 
value. That could lead to problems if realloc() decided to move the 
allocated block away. Although that's not a problem in your case, since 
the block can only be shrunk, new gcc still complains about it, so it 
would be a good idea to fix it.

Attached is a (trivial) patch against 20051211 snapshot.

regards
jan matejek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imaging-realloc.patch
Type: text/x-patch
Size: 378 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20051221/e43b4eb6/Imaging-realloc.bin


More information about the Image-SIG mailing list