diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-05-26 14:35:04 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-05-26 14:35:04 +0100 |
| commit | 3206c6d60caae5dec3d7a7b8131a3aa256d84631 (patch) | |
| tree | ac0bb3691a581acebc0f74f52fb9484cf026b183 /scripts | |
| parent | 1c8dad272bd2a0cac964739e64903d98650600b4 (diff) | |
| download | busybox-w32-3206c6d60caae5dec3d7a7b8131a3aa256d84631.tar.gz busybox-w32-3206c6d60caae5dec3d7a7b8131a3aa256d84631.tar.bz2 busybox-w32-3206c6d60caae5dec3d7a7b8131a3aa256d84631.zip | |
win32: update inet_pton(3) implementation
Apply musl commit 7e13e5ae (inet_pton: fix uninitialized memory
use for IPv4-mapped IPv6 addresses).
When a dot is encountered, the loop counter is incremented before
exiting the loop, but the corresponding ip array element is left
uninitialized, so the subsequent memmove (if "::" was seen) and the
loop copying ip to the output buffer will operate on an uninitialized
uint16_t.
The uninitialized data never directly influences the control flow and
is overwritten on successful return by the second half of the parsed
IPv4 address. But it's better to fix this to avoid unexpected
transformations by a sufficiently smart compiler and reports from
UB-detection tools.
Adds 16 bytes.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
