mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-23 10:53:40 +08:00
b27aa3fb5a
The stdndupa has a couple of gotchas: - allocates memory on stack via alloca(3)... where we pass it a user-provided string in at least one instance - it's a GNU extension missing on musl and bionic The mkdir_p() function is not a hot path, so using heap allocation is perfectly fine. Swap the stdndupa for our local helper memdup. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/92 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
array.c | ||
array.h | ||
hash.c | ||
hash.h | ||
macro.h | ||
missing.h | ||
scratchbuf.c | ||
scratchbuf.h | ||
strbuf.c | ||
strbuf.h | ||
util.c | ||
util.h |