Crash if accessing negative reference indices
Bug #882356 reported by
Robert Xiao
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Meliae |
Fix Released
|
Undecided
|
Robert Xiao |
Bug Description
A segfault occurs if attempting to access a negative ref index.
Sample code:
>>> om = loader.load(...)
>>> obj = om.get_
>>> print obj[-1]
Expected: last reference of obj
Observed: crash
Attached: patch
Related branches
To post a comment you must log in.
Thanks for the patch.
I added some tests and tweaked the code a little bit, but it looks good.