[Rpm-maint] [rpm-software-management/rpm] OpenPGP: Function `pgpParsePkts` missing length argument (Issue #2513)

Jaroslav Rohel notifications at github.com
Thu May 18 09:54:26 UTC 2023


The `pgpParsePkts` function does not have a `armorlen` argument. Instead, it requires a null-terminated input buffer. It assumes that the input is a C string.

It's not a blocker for me. I made a workaround, I copy the buffer from the user to the temporary buffer, where I add the terminating zero character. It's not ideal, it costs extra memory and CPU time.

So a tip for an extension/new API.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2513
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2513 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230518/120c2b33/attachment.html>


More information about the Rpm-maint mailing list