Message126334
If a mmap length 0 is used and an offset is used as well, the size to mmap() is calculated as the size of the file instead of the size of the file minus offset. This means that trying to access a certain part does not result in an index error but a segfault (bus error).
Attached is a patch that fixes the issue + a unit test. |
|
Date |
User |
Action |
Args |
2011-01-15 15:19:02 | rosslagerwall | set | recipients:
+ rosslagerwall, loewis, amaury.forgeotdarc, pitrou, r.david.murray |
2011-01-15 15:19:02 | rosslagerwall | set | messageid: <1295104742.35.0.155960214415.issue10916@psf.upfronthosting.co.za> |
2011-01-15 15:18:57 | rosslagerwall | link | issue10916 messages |
2011-01-15 15:18:57 | rosslagerwall | create | |
|