diff options
| author | jsing <> | 2021-10-31 06:48:54 +0000 |
|---|---|---|
| committer | jsing <> | 2021-10-31 06:48:54 +0000 |
| commit | bd06f1e8ae5fff9f6ae109217894e7f61176e903 (patch) | |
| tree | 670b281eab33c66e6607a6118b3d184939e5076a /src/lib/libc/stdlib/realpath.c | |
| parent | 1507ec383c4225e409a40fc53eb43aec39bd4b66 (diff) | |
| download | openbsd-bd06f1e8ae5fff9f6ae109217894e7f61176e903.tar.gz openbsd-bd06f1e8ae5fff9f6ae109217894e7f61176e903.tar.bz2 openbsd-bd06f1e8ae5fff9f6ae109217894e7f61176e903.zip | |
Add explicit CBS_contains_zero_byte() check in CBS_strdup().
If the CBS data contains a zero byte, then CBS_strdup() is only going to
return part of the data - add an explicit CBS_contains_zero_byte() and
treat such data as an error case.
ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/realpath.c')
0 files changed, 0 insertions, 0 deletions
