Message140222
| Author |
Kuberan.Naganathan |
| Recipients |
Kuberan.Naganathan |
| Date |
2011年07月13日.03:29:18 |
| SpamBayes Score |
1.9534154e-08 |
| Marked as misclassified |
No |
| Message-id |
<1310527759.4.0.117442331882.issue12545@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The lseek function can legitimately return a code less then zero ( except for -1 ) when seeking beyond an offset of 2^63. This behavior should be supported in order to permit the python interpreter to seek in files with valid data at locations greater than or equal to 2^63. This can happen in a sparse file or in the /proc file system address space file.
The fix is simple. In the posix_lseek function check for result != -1 instead of checking for result < 0 in return code checks of the value returned by lseek. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月13日 03:29:19 | Kuberan.Naganathan | set | recipients:
+ Kuberan.Naganathan |
| 2011年07月13日 03:29:19 | Kuberan.Naganathan | set | messageid: <1310527759.4.0.117442331882.issue12545@psf.upfronthosting.co.za> |
| 2011年07月13日 03:29:18 | Kuberan.Naganathan | link | issue12545 messages |
| 2011年07月13日 03:29:18 | Kuberan.Naganathan | create |
|