]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/procfs.c
avoid a few strncpy-induced buffer overruns
authorJim Meyering <meyering@sourceware.org>
Wed, 25 Apr 2012 08:16:43 +0000 (08:16 +0000)
committerJim Meyering <meyering@sourceware.org>
Wed, 25 Apr 2012 08:16:43 +0000 (08:16 +0000)
commit4e2af517f12dc3ac61278947995bc8918069a297
tree1b04aab71477ae53eff86c751d605f821230fa1c
parentb77b7f52b886b60cfc13858d1d3f0b8e8d702147
avoid a few strncpy-induced buffer overruns

* procfs.c (procfs_make_note_section): Be sure to NUL-terminate
fname and psargs before trying to concatenate.
* tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
"name" before applying strchr.
gdb/ChangeLog
gdb/procfs.c
gdb/tui/tui-stack.c