musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/multibyte/internal.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2017年08月31日 14:30:28 -0400
committerRich Felker <dalias@aerifal.cx>2017年08月31日 15:48:00 -0400
commit11ddc314b57196519316103b02acffe10299dad3 (patch)
tree378a974b331fad6963b364b31e33bed049c3c1cd /src/multibyte/internal.c
parent8459c6f2647a378eca2c6375210ddf29dd499043 (diff)
downloadmusl-11ddc314b57196519316103b02acffe10299dad3.tar.gz
fix erroneous stop before input limit in mbsnrtowcs and wcsnrtombs
the value computed as an output limit that bounds the amount of input consumed below the input limit was incorrectly being used as the actual amount of input consumed. instead, compute the actual amount of input consumed as a difference of pointers before and after the conversion. patch by Mikhail Kremnyov.
Diffstat (limited to 'src/multibyte/internal.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月27日 15:14:35 +0000

AltStyle によって変換されたページ (->オリジナル) /