Menu

#95 buffer overflow in exp_log.c

open
nobody
None
5
2013-12-18
2013-12-18
No

There's "static char bigbuf[2000]" defined in exp_log.c, which is then used to write in with vsprintf in various logging functions.

The buffer could overflow (actually it does - e.g. when running systemtap testsuite).

Attached patch replaces vsprintf with vsnprintf function, which checks the length of destination buffer.

1 Attachments

Discussion


Log in to post a comment.