Skip to content
Snippets Groups Projects
Commit 11813330 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix for 80379e91

The commit just the zero-length behaviour from uninitialized use
with possible undefined behaviour to guaranteed undefined behaviour.
parent d60cc963
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4527 passed
......@@ -2045,6 +2045,8 @@ all_done:
size_t mlen = 0;
char *out;
if (end == NULL)
return;
// First, calculate the required length...
for (p = cterm->strbuf; p <= end;) {
if (*p == '!') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment