tui_expand_tabs writes past the end of the buffers it allocates
because we forget to zero out col. This results in us adding more
spaces than we need to get aligned, and we write past the end of the
This was noticed on Ubuntu Vivid ppc64le, where gdb would SEGV when
using the TUI.
Reported by Anton Blanchard <firstname.lastname@example.org>.
Created attachment 8263 [details]
patch used to fix the bug
Fixed with the attached patch.
URL to discussion on gdb-patches: