cavaliergopher / rpm

A Go implementation of the RPM file format
BSD 3-Clause "New" or "Revised" License
169 stars 44 forks source link

fix: support sizes > 4GB #29

Closed abemedia closed 8 months ago

abemedia commented 10 months ago

Currently (*Package).Size() and (*Package).ArchiveSize() don't work if the size is larger than 4GB as RPM has separate tags for 64bit integers (LONGSIZE & LONGARCHIVESIZE).

This PR attempts to get the long sizes and falls back to the 32bit sizes if they aren't found.