summaryrefslogtreecommitdiff
path: root/src/gpg-error.def.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-03-03 15:41:39 +0100
committerWerner Koch <wk@gnupg.org>2020-03-03 15:41:39 +0100
commit969abd302211262562df93ae5412ee319aae69e6 (patch)
tree37fc4be7deab2afa11c86faf76f324ad15c7302f /src/gpg-error.def.in
parent72a15bad8f27303475498ce44e34d29b4c2c4593 (diff)
downloadlibgpg-error-969abd302211262562df93ae5412ee319aae69e6.tar.gz
core: New function gpgrt_reallocarray.
* src/init.c (_gpgrt_reallocarray): New. * src/visibility.c (gpgrt_reallocarray): New. * src/gpg-error.vers, src/gpg-error.def.in: Add new function. * src/gpg-error.h.in: Add new interface. * tests/t-malloc.c: New. * tests/Makefile.am (TESTS): Add new test. -- Note that this function is different from the glibc function because it has an extra parameter which allows to clear the new elements. A realloc after a calloc with forgotten memset after it is a common source of error, thus we introduce this slightly different function. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gpg-error.def.in')
-rw-r--r--src/gpg-error.def.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpg-error.def.in b/src/gpg-error.def.in
index bc4b0cc..bf8773b 100644
--- a/src/gpg-error.def.in
+++ b/src/gpg-error.def.in
@@ -235,4 +235,6 @@ EXPORTS
gpgrt_fnameconcat @178
gpgrt_absfnameconcat @179
+ gpgrt_reallocarray @180
+
;; end of file with public symbols for Windows.