Bug#742885: python-apt: Does not support LFS .deb packages on 32-bit systems
Package: python-apt
Version: 0.9.3.4
Severity: normal
Control: block -1 by 742882
Hi!
python-apt also seems to have issues with LFS .deb files. Some cannot be
fixed until apt provides the fixed interfaces though, here's the issues
I've spotted by code staring, but there might be others:
- arfile.cc:ararchive_extractdata() will try to slurp the entire ar
member into memory, on 32-bit systems for members > 4 GiB they will
not fit in the address space (not sure how this method is being used
though).
- arfile.cc:_extract() uses short size and read variable, will truncate
on assignment and on cast.
- tarfile.cc:PyDirStream::Process() Size and Pos arguments.
- tarfile.cc:PyDirStream::DoItem() allocates the size of the member,
which might not fit in the address space on 32-bit systems.
Thanks,
Guillem
Reply to: