pnmimage crashes if x/y coodinate outside image
Bug #372254 reported by
Hypnos
This bug report is a duplicate of:
Bug #372253: pnmimage crashes if x/y coodinate outside image.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
New
|
Undecided
|
Unassigned |
Bug Description
crashes on: panda3d 1.6.1 on jaunty:
example code:
from pandac.PandaModules import *
i = PNMImage(256,256)
for x in xrange(1024):
for y in xrange(1024):
i.setXel(x,y,1)
can eighter segfault or "*** glibc detected *** python: malloc(): memory corruption: 0x0956cd70 ***", depending which values are written, in which order.
for some values it crashes for others it doesnt. it's really not predictable.
To post a comment you must log in.
I wonder what it should return instead? Should it wrap the image or
raise exception?
On Tue, Jun 2, 2009 at 12:06 AM, pro-rsoft <email address hidden> wrote: /bugs.launchpad .net/bugs/ 372253 /bugs.launchpad .net/bugs/ 372254
> *** This bug is a duplicate of bug 372253 ***
> https:/
>
> ** This bug has been marked a duplicate of bug 372253
> pnmimage crashes if x/y coodinate outside image
>
> --
> pnmimage crashes if x/y coodinate outside image
> https:/
> You received this bug notification because you are subscribed to
> Panda3D.
>