Commit 23525c9
authored
If the Pascal string is empty (size=0), do not write the size prefix.
Previously, a NUL byte was written outsize the buffer (buffer
overflow). In practice, the write remains into allocated memory
and is silently ignored: no memory is corrupted.
1 parent dcc4e52 commit 23525c9
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2424 | 2424 | | |
2425 | 2425 | | |
2426 | 2426 | | |
2427 | | - | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
2428 | 2430 | | |
2429 | 2431 | | |
2430 | 2432 | | |
| |||
0 commit comments