kernel-ark/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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file2alias.c [PATCH] s390: fix match in ccw modalias 2006-03-06 18:40:45 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mk_elfconfig.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
modpost.c [PATCH] kbuild: fix buffer overflow in modpost 2006-03-17 07:51:25 -08:00
modpost.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sumversion.c [PATCH] kbuild: signed char fixes for scripts 2005-07-27 22:27:08 +02:00