This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: BZ2File.seek() fails for large files
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, lars.gustaebel
Priority: normal Keywords: patch

Created on 2006-12-14 16:25 by lars.gustaebel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bz2-seek.diff lars.gustaebel, 2006-12-14 16:45 patch against bz2module.c
Messages (3)
msg51533 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2006-12-14 16:25
The bytesread variable in BZ2File.seek() is defined as int instead of size_t making it impossible to seek beyond 2GB distances.
Affected are all Python versions.
msg51534 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2006-12-14 16:45
Nah, it must be Py_off_t.
File Added: bz2-seek.diff
msg51535 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-18 19:26
Thanks for the patch!  Committed to the trunk in rev. 53053 and to 25-maint in rev. 53054.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44339
2006-12-14 16:25:38lars.gustaebelcreate