[openSUSE/obs-sign] 023376: Fix signing of rpms with a size greater than 4GByte

29 Jan
2021
29 Jan
'21
09:41
Branch: refs/heads/master Home: https://github.com/openSUSE/obs-sign Commit: 023376c5763dd2a0630d3edb3f5de8f3001594d6 https://github.com/openSUSE/obs-sign/commit/023376c5763dd2a0630d3edb3f5de8f3... Author: Michael Schroeder <mls@suse.de> Date: 2021-01-29 (Fri, 29 Jan 2021) Changed paths: M inc.h M rpm.c Log Message: ----------- Fix signing of rpms with a size greater than 4GByte The main fix is changing lensig in rpm_readheaderpayload to be 64bit instead of 32bit. With 32bit, it will wrap around to zero after the first 4GByte are read. This triggers a re-calculation of the header size, leading to a misleading "bad header size" error. Also prepare to read the 64bit size if present.
1513
Age (days ago)
1513
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Schroeder