commit 08b9feb5df5a93ed2a422126736561588a59544a from: Omar Polo date: Mon Jul 26 11:49:45 2021 UTC fix off-by-one Thanks to the fact that we're using a bigger buffer in the net process, and thanks to the way otto@' malloc works, it was easy to detect this off-by-one in a large page (RFC3089 in particular). commit - 04439a7846b42eb66a9dde6e8965391346c80543 commit + 08b9feb5df5a93ed2a422126736561588a59544a blob - a02188b1818b4cd797962b7d3d6dafcbf3aab4f9 blob + 0446d63dea36127e13ce95f106e5544668cb46e1 --- parser.c +++ parser.c @@ -128,7 +128,7 @@ parser_foreach_line(struct parser *p, const char *buf, ++i; continue; } - memmove(&b[i], &b[i+1], len - i); + memmove(&b[i], &b[i+1], len - i - 1); len--; }