mirror of https://github.com/dynup/kpatch
7e48138185
symtab_read() is quite fragile because it relies on the fact that the first and second loops have the exact same conditions. Instead just change the first loop to count all the lines in the file, to get an upper bound for allocation. It's ok to over-allocate slightly. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> |
||
---|---|---|
.. | ||
gcc-plugins | ||
insn | ||
Makefile | ||
create-diff-object.c | ||
create-klp-module.c | ||
create-kpatch-module.c | ||
kpatch-build | ||
kpatch-elf.c | ||
kpatch-elf.h | ||
kpatch-gcc | ||
kpatch-intermediate.h | ||
kpatch.h | ||
list.h | ||
log.h | ||
lookup.c | ||
lookup.h |