Changes between Initial Version and Version 1 of Ticket #13731, comment 119


Ignore:
Timestamp:
12/06/12 23:07:52 (7 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13731, comment 119

    initial v1  
    112112}}}
    113113The last line indeed gets `prime` from an unallocated address. However, that value doesn't get used. So if this instruction succeeds I don't think it'll do harm, but in extremely unlucky situations (when `self.primes` is just at the edge of a page) this could lead to a segfault. The same thing happens at other places in this file too.
     114
     115The sanitary thing is to allocate one "long" more. Then we'll only read memory that's guaranteed to exist.