android_kernel_xiaomi_sm8350/scripts/mod
Sam Ravnborg 7670f023aa [PATCH] kbuild: fix buffer overflow in modpost
Jiri Benc <jbenc@suse.cz> reported that modpost would stop with SIGABRT if
used with long filepaths.
The error looked like:
>   Building modules, stage 2.
>   MODPOST
> *** glibc detected *** scripts/mod/modpost: realloc(): invalid next size:
+0x0809f588 ***
> [...]

Fix this by allocating at least the required memory + SZ bytes each time.
Before we sometimes ended up allocating too little memory resuting in the
glibc detected bug above.  Based on patch originally submitted by: Jiri
Benc <jbenc@suse.cz>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-17 07:51:25 -08:00
..
.gitignore Add some basic .gitignore files 2005-10-18 08:26:15 -07:00
empty.c
file2alias.c [PATCH] s390: fix match in ccw modalias 2006-03-06 18:40:45 -08:00
Makefile
mk_elfconfig.c
modpost.c [PATCH] kbuild: fix buffer overflow in modpost 2006-03-17 07:51:25 -08:00
modpost.h
sumversion.c