* lib/astrxfrm.c (astrxfrm): Don't use memcpy after realloc succeeded.
+2023-05-18 Bruno Haible <bruno@clisp.org>
+
+ astrxfrm: Fix use-after-free bug.
+ * lib/astrxfrm.c (astrxfrm): Don't use memcpy after realloc succeeded.
+
2023-05-18 Bruno Haible <bruno@clisp.org>
gnulib-tool: Ignore .orig and .rej files under modules/.
/* Locale dependent string transformation for comparison.
- Copyright (C) 2010-2022 Free Software Foundation, Inc.
+ Copyright (C) 2010-2023 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2010.
This program is free software: you can redistribute it and/or modify it
{
char *memory = (char *) realloc (result, length);
if (memory != NULL)
- {
- memcpy (memory, result, length);
- result = memory;
- }
+ result = memory;
}
}
}