Fix stack buffer overflow in rvermicelliDoubleExecReal
Remove unconditional snprintf that writes input buffer length into
fixed 255-byte stack buffer. On inputs >255 bytes, this causes stack
smash detected by FORTIFY_SOURCE. The removed lines were debug
scaffolding that duplicated the DEBUG_PRINTF above them.
Fixes crash on patterns like ".*literal" with buffers >255 bytes.
assert(buf < buf_end);
DEBUG_PRINTF("rverm %p len %zu\n", buf, buf_end - buf);
DEBUG_PRINTF("b %s\n", buf);
- char s[255];
- snprintf(s, buf_end - buf + 1, "%s", buf);
- DEBUG_PRINTF("b %s\n", s);
const u8 *d = buf_end;
const u8 *rv;