Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix input termination for pgpParsePkts
The `pgpParsePkts` function needs the OpenPGP ASCII armored input to be null terminated. The librepo contains code that checks if the input is null-terminated. If it is not, the code creates a local null-terminated copy of the input. There was a bug in the code, so it may look for a terminating null several bytes behind the input buffer. And when a null was found behind the input buffer, the termination was not done. This caused the `pgpParsePkts` function to process several extra characters after the input buffer. These characters are generally random and sometimes cause the `pgpParsePkts` function to return an error.
- Loading branch information