From dc241cba4d146835d7bdc3c32133aad27cdfc8e4 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 12 Jan 2008 23:02:47 +0000 Subject: PR5603 hack for stack smash 2008-01-12 Frank Ch. Eigler PR 5603 horrible hack. * symbols.c (do_kernel_symbols): Make buf[256] instead of [128]. --- runtime/staprun/symbols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/staprun/symbols.c') diff --git a/runtime/staprun/symbols.c b/runtime/staprun/symbols.c index 315362fa..e4d96ee0 100644 --- a/runtime/staprun/symbols.c +++ b/runtime/staprun/symbols.c @@ -198,7 +198,7 @@ void do_kernel_symbols(void) { FILE *kallsyms=NULL; char *sym_base=NULL, *data_base=NULL; - char buf[128], *ptr, *name, *data, *dataptr, *datamax, type; + char buf[256], *ptr, *name, *data, *dataptr, *datamax, type; unsigned long addr; struct _stp_symbol *syms; int num_syms, i = 0, max_syms= MAX_SYMBOLS; @@ -226,7 +226,7 @@ void do_kernel_symbols(void) /* put empty string in data */ *dataptr++ = 0; - while (fgets_unlocked(buf, 128, kallsyms) && dataptr < datamax) { + while (fgets_unlocked(buf, 256, kallsyms) && dataptr < datamax) { addr = strtoul(buf, &ptr, 16); while (isspace(*ptr)) ptr++; type = *ptr++; -- cgit