Opened 6 years ago

Closed 5 years ago

#562 closed defect (fixed)

__ipow__ method must ignore its third argument

Reported by: cwitty Owned by: somebody
Priority: minor Milestone: 0.15
Component: Code Generation Keywords:
Cc: Carl.Witty@…


Evidently the Python position is that it's OK to pass garbage as the third argument of a .nb_inplace_pow() method; see and . In this case, it might be a good idea to forbid the user from writing crashy code.

(I don't know how to trigger the particular call referenced above without the patch on #561, and the next version of that patch will be changed to avoid the problem. So I don't know of an actual test case for this problem.)

Attachments (1)

trac_562-ipow-crash.patch (547 bytes) - added by cwitty 6 years ago.
test case that demonstrates segfault

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by cwitty

test case that demonstrates segfault

comment:1 Changed 6 years ago by cwitty

  • Priority changed from major to minor

Actually, I was wrong... the bug has nothing to do with #561. This test case reliably segfaults for me, against current cython-devel. (I still don't think it's a major bug, though, since you have to do something quite strange to trigger it.)

comment:2 Changed 6 years ago by cwitty

  • Cc Carl.Witty@… added
Note: See TracTickets for help on using tickets.