aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
authorMichael Colavita <mcolavita@fb.com>2020-11-19 11:44:40 -0500
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-07 22:23:26 +0530
commit228edd356f03bf62dcf2b1335f25d43c602ee68d (patch)
tree85a40834d0c664df673a52adee19de6a040f7baa /signal
parent088e9625378f25607acff3daf7a79cbdee497043 (diff)
downloadglibc-228edd356f03bf62dcf2b1335f25d43c602ee68d.tar
glibc-228edd356f03bf62dcf2b1335f25d43c602ee68d.tar.gz
glibc-228edd356f03bf62dcf2b1335f25d43c602ee68d.tar.bz2
glibc-228edd356f03bf62dcf2b1335f25d43c602ee68d.zip
iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923)
Previously, in UCS4 conversion routines we limit the number of characters we examine to the minimum of the number of characters in the input and the number of characters in the output. This is not the correct behavior when __GCONV_IGNORE_ERRORS is set, as we do not consume an output character when we skip a code unit. Instead, track the input and output pointers and terminate the loop when either reaches its limit. This resolves assertion failures when resetting the input buffer in a step of iconv, which assumes that the input will be fully consumed given sufficient output space.
Diffstat (limited to 'signal')
0 files changed, 0 insertions, 0 deletions