size_t changes for multibyte characters; fix for running debug trap in asynchronous pipeline; remove support for precomputed cache files for cross-compiling; more size_t and ssize_t changes to avoid overflow

This commit is contained in:
Chet Ramey
2024-06-28 14:16:29 -04:00
parent ad1f497a84
commit 5e28a1813c
20 changed files with 145 additions and 98 deletions
+1 -1
View File
@@ -818,7 +818,7 @@ out_html(char *c)
} else if (output_possible) {
while (*c) {
outbuffer[obp++] = *c;
if (*c == '\n' || obp > HUGE_STR_MAX) {
if (*c == '\n' || obp >= HUGE_STR_MAX) {
outbuffer[obp] = '\0';
add_links(outbuffer);
obp = 0;