diff options
author | Sam Ravnborg <[email protected]> | 2006-03-16 23:04:08 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2006-03-17 07:51:25 -0800 |
commit | 7670f023aabd976c25862e4c6fb9f6d9d2758153 (patch) | |
tree | 13c1c1fe41028f1f4752e10eef1a162b4f38c937 /net/unix/sysctl_net_unix.c | |
parent | 85c6932ef0c7a82c309f8728ddf29768001d794e (diff) |
[PATCH] kbuild: fix buffer overflow in modpost
Jiri Benc <[email protected]> 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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions