Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Series.iloc[ negative number ] can access memory it doesn't own or cause Segmentation Fault #10779
Comments
sergeny
changed the title from
Series.iloc[ large negative number ] causes Segmentation Fault to Series.iloc[ negative number ] can access memory it doesn't own or cause Segmentation Fault
Aug 9, 2015
|
looks like boundary checking is not happening correctly. pull-requests are welcome to fix. |
jreback
added Bug Indexing
labels
Aug 10, 2015
jreback
added this to the
Next Major Release
milestone
Aug 10, 2015
|
A related issue: should For So I think both I can submit a PR if noone else is working on this. |
|
might be relevant. pydata#6531 (though about slicing). @ajcr yes, this prob is a simple fix, just needs some testing / logic. go for it. |
ajcr
referenced
this issue
Aug 12, 2015
Merged
BUG: fix bounds for negative ints when using iloc (GH 10779) #10808
jreback
modified the milestone: 0.17.0, Next Major Release
Aug 13, 2015
|
closed by #10808 |
sergeny commentedAug 9, 2015
In other words, there is no bounds checking for Series.iloc[] with a negative argument. It just accesses whatever is in the memory there. Also a security breach.
It does appear to check on write, just not on read.
Python 2.7.10 |Anaconda 2.1.0 (64-bit)| (default, May 28 2015, 17:02:03)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org