Summary: | StatelessFile bound checks does not work on 64 bit | ||
---|---|---|---|
Product: | frysk | Reporter: | Phil Muldoon <pmuldoon> |
Component: | general | Assignee: | Chris Moller <cmoller> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cmoller |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Bug Depends on: | |||
Bug Blocks: | 1595, 2243 |
Description
Phil Muldoon
2007-06-21 00:40:27 UTC
Removed verifyBounds()in StatelessFile.java, replaced it with an upper-bound check, and comitted it. (Nominally negative signed start and length numbers interpreted as large unsigned numbers will exceed bytes->length and cause a bounds exception. A nominally negative signed fileOffset number interpreted as a large unsigned value will /probably/ result in a read error and a throwErrno().) Patched worked. |