2 ms·
The patch is still handwaving, and not doing proper boundschecks. https://github.com/ThomasDickey/xterm-snapshots/commit/82ba55b8f994ab30ff561a347b82ea340ba7075
by rurban 6y ago
The patch is still handwaving, and not doing proper boundschecks.
https://github.com/ThomasDickey/xterm-snapshots/commit/82ba55b8f994ab30ff561a347b82ea340ba7075c https://github.com/ThomasDickey/xterm-snapshots/commit/82ba5...
Before he thought of a UTF-8 encode taking 4x the space, now he assumes 6x. This not a fix!
A fix is to provide the destlen, and realloc if off bounds. Probably in a loop.