rendered paste body--- src/gerbv.c~ 2007-05-26 06:33:50.000000000 +0200
+++ src/gerbv.c 2007-05-26 06:33:50.000000000 +0200
@@ -1523,7 +1523,7 @@
/*
* Show progress in status bar
*/
- snprintf(screen.statusbar.msgstr, MAX_STATUSMSGLEN,
+ snprintf(screen.statusbar.msgstr, MAX_ERRMSGLEN,
"%d %s...",
i, screen.file[i]->basename);
update_statusbar(&screen);
* Passing files at the command-line results in 100% buffer
overflow crash:
*** buffer overflow detected ***: gerbv terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x87c161]
/lib/libc.so.6[0x87bba3]
/lib/libc.so.6(__snprintf_chk+0x37)[0x87ba87]
gerbv[0x8055686]
gerbv[0x805625a]
/lib/libglib-2.0.so.0[0x12a5e1]