google / google/rpmpack

Size of payload in header is incorrect - should be size of compressed payload, not uncompressed

Open
#60 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
128
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Hi,

The size of the payload written to the Size header is incorrect. It should be the length of the compressed payload, not the sun of the sizes of the uncompressed payload files.
This makes the rpm2cpio program exit with a failure, as it does a comparison between the header value and that returned by librpm's `ufdCopy()` function.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.