diff options
| author | Florian Weimer <fweimer@redhat.com> | 2026-04-16 19:13:43 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2026-04-16 19:13:43 +0200 |
| commit | d6f08d1cf027f4eb2ba289a6cc66853722d4badc (patch) | |
| tree | d2e4f5710e58fb5f1d30ef470fc37bba082b8221 /nptl/tst-tls-debug-mod.c | |
| parent | ef044cc6d79c5646b521569417da890154ea1813 (diff) | |
Use pending character state in IBM1390, IBM1399 character sets (CVE-2026-4046)HEADorigin/masterorigin/HEADmaster
Follow the example in iso-2022-jp-3.c and use the __count state
variable to store the pending character. This avoids restarting
the conversion if the output buffer ends between two 4-byte UCS-4
code points, so that the assert reported in the bug can no longer
happen.
Even though the fix is applied to ibm1364.c, the change is only
effective for the two HAS_COMBINED codecs for IBM1390, IBM1399.
The test case was mostly auto-generated using
claude-4.6-opus-high-thinking, and composer-2-fast shows up in the
log as well. During review, gpt-5.4-xhigh flagged that the original
version of the test case was not exercising the new character
flush logic.
This fixes bug 33980.
Assisted-by: LLM
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/tst-tls-debug-mod.c')
0 files changed, 0 insertions, 0 deletions
