Buffer overflow when opening the "Tools" popup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Seq24 |
New
|
Undecided
|
Unassigned | ||
seq24 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is in 0.9.0:
*** buffer overflow detected ***: /opt/seq24-
======= Backtrace: =========
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/opt/seq24-
/usr/lib/
...
seqedit.cpp:587
The problem is that the 'num' buffer is too small to fit the widest string: "+12 [VIII]". In general this code should be using snprintf instead of sprintf.
I don't know much about C programming and if I'm experiencing this same bug, but I can confirm that seq24 crashes when I click on the tools button.