https://gitlab.synchro.net/main/sbbs/-/commit/c0230c5c0982117572c6303e
Added Files:
src/syncterm/scripts/menu_web_lists_test.wren
Modified Files:
src/syncterm/CMakeLists.txt run_wren.sh wren_bind_menu_settings.c
Log Message:
Fix the crash when adding the first web list
Initialize the web-list array terminator before moving entries. When the
list starts as NULL, realloc creates uninitialized storage and the old
code copied a garbage pointer into the terminator slot. The menu could
then walk past the array while rebuilding its rows.
Add an isolated, offline menu-VM regression with allocator poisoning.
Cover first insertion, append, head/middle insertion, duplicate rejection,
URI updates, deletion, and inserting again after deleting every entry.
The unpatched binary crashes; the patched build passes all 38 checks.
Reported by Accession via IRC.
Closes #1273
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)