[Rpm-maint] [rpm-software-management/rpm] Avoid `n * m` memory allocation in base2bin() (Issue #1984)
Demi Marie Obenour
notifications at github.com
Thu Jul 14 08:03:03 UTC 2022
The problem is that `base2bin()` uses `n * m` memory, where `n` is the number of entries and `m` is the length of the *largest* entry. `hex2bin()` used to have a similar problem, but it was fixed in #1914. `base2bin` can use the same data structure, though care needs to be taken as base64 decoding is more complex than hex decoding.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1984#issuecomment-1184127822
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1984/1184127822 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220714/2268e820/attachment-0001.html>
More information about the Rpm-maint
mailing list