about summary refs log tree commit diff
path: root/src/network/lookup_name.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-06-12 20:04:22 -0400
committerRich Felker <dalias@aerifal.cx>2023-06-12 20:04:22 -0400
commit40834f6c1e30cc25c608678c372db498a3d9dbc3 (patch)
tree675e8cea1ab478890a5d0f56f6a332fcc846f4d6 /src/network/lookup_name.c
parent3a23cd06b08054f81bf904c414e0d083a56248f2 (diff)
downloadmusl-40834f6c1e30cc25c608678c372db498a3d9dbc3.tar.gz
musl-40834f6c1e30cc25c608678c372db498a3d9dbc3.tar.xz
musl-40834f6c1e30cc25c608678c372db498a3d9dbc3.zip
printf core: fix gratuitous integer formatting buffer size
the extra terms 3 and LDBL_MANT_DIG/4 are remnants of a proto-musl
implementation of printf where the sign/prefix and floating point
conversions were performed naively into this buffer. having them there
obscures the actual intended buffer size (sufficient to hold between 2
and 3 octal digits per byte, rounded up to 3 for simplicity) and
interferes with upcoming work to add C2x binary formats which would
otherwise be stuck having to explain a similar fix to buffer size as
part of an unrelated change.
Diffstat (limited to 'src/network/lookup_name.c')
0 files changed, 0 insertions, 0 deletions