diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2022-02-08 09:23:58 +0200 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2022-02-09 15:04:55 +0100 |
commit | 6aec7c673f25ff8339730cca45207aed0a6e7c42 (patch) | |
tree | bd7010ce6d606ef27e79f9d8ca962f9a48c8a4e5 /rpmio/rpmpgp.c | |
parent | 1f03aba8b2881a5717af97065038fb056e02a2b3 (diff) | |
download | rpm-6aec7c673f25ff8339730cca45207aed0a6e7c42.tar.gz |
Add rreallocn() to librpmio public API
rreallocn() is like realloc() but with multiplication protection.
Inspired by glibc's reallocarray() but I dislike that name.
While at it, add xmallocn() as a shortcut to rreallocn(NULL, ...) case.
Based on initial patch by Demi Marie Obenour.
Diffstat (limited to 'rpmio/rpmpgp.c')
0 files changed, 0 insertions, 0 deletions