unittest failure on armhf and glibc 2.37
Bug #2008108 reported by
Dan Bungert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
notcurses (Ubuntu) |
Fix Released
|
Undecided
|
Dan Bungert |
Bug Description
notcurses autopkgtest will fail on the unittest stage when triggered with glibc 2.37.
Changed in notcurses (Ubuntu): | |
assignee: | nobody → Dan Bungert (dbungert) |
status: | New → In Progress |
To post a comment you must log in.
https:/ /github. com/dankamongme n/notcurses/ pull/2707 sent upstream (hi nick :)
This was an interesting one to debug. The tests are (indirectly) using snprintf, and don't seem close to consuming the buffer size, but are sending a too-large size for the size_t value in snprintf, and that triggers truncation of the printed value somehow. Worse, the truncation behavior isn't consistent. See attached reproducer which shows the weird truncation behavior.