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 551849 - Region slice fails on 64-bit platforms with segfault.
Region slice fails on 64-bit platforms with segfault.
Status: RESOLVED DUPLICATE of bug 540629
Product: GIMP
Classification: Other
Component: Gimp-Python
2.4.x
Other All
: Normal critical
: ---
Assigned To: Manish Singh
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-11 18:15 UTC by David Siroky
Modified: 2008-10-30 20:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Siroky 2008-09-11 18:15:48 UTC
Steps to reproduce:
file: plug-ins/pygimp/pygimp-tile.c
function: pr_subscript(PyGimpPixelRgn *self, PyObject *key)

Local variables "x1, y1, x2, y2, xs, ys" are of type "int" (4-byte) but they have to be of type "Py_ssize_t" (8-byte on 64-bit platforms). Because when they are only 4-byte ints then the function PySlice_GetIndices incorectly overwrites them.

E.g.

rgn = drawable.get_pixel_rgn(0, 0,
                        drawable.width, drawable.height,
                        False, False)
pixels = rgn[0:drawable.width, 0:drawable.height] # this will fail

Stack trace:


Other information:
Comment 1 Lars-Peter Clausen 2008-09-11 21:30:01 UTC
The bug is already fixed in 2.4.7
Comment 2 Michael Natterer 2008-09-11 21:40:46 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 540629 ***