pnmimage crashes if x/y coodinate outside image

Bug #372253 reported by Hypnos
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
David Rose

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.

Changed in panda3d:
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
assignee: nobody → David Rose (droklaunchpad)
milestone: none → 1.7.0
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.