]> git.ipfire.org Git - thirdparty/curl.git/commit
lib547, 555: fix off-by-one null-terminator in read callback
authorViktor Szakats <commit@vsz.me>
Tue, 23 Dec 2025 11:03:10 +0000 (12:03 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 23 Dec 2025 18:49:59 +0000 (19:49 +0100)
commit66aec526fcdb91bfabca7be638eff13d53b51a8a
tree4e9414f4a362e25b2e1ae4d4085a0227a4e9f00e
parent7e064d0756c1b77a793a103f46add9bfdc22c680
lib547, 555: fix off-by-one null-terminator in read callback

`strcpy()` wrote an unnecessary null-terminator past the available read
buffer.

test551 was also affected because it reuses lib547.

Cherry-picked from #20076
Closes #20082
tests/libtest/lib547.c
tests/libtest/lib555.c