[PATCH 1/2] iconvdata: SHIFT_JISX0213 lacks pending character reset (CVE-2026-77117)

Florian Weimer fweimer@redhat.com
Fri Aug 21 10:12:27 GMT 2026


This fixes bug 34556.
---
 iconvdata/shift_jisx0213.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iconvdata/shift_jisx0213.c b/iconvdata/shift_jisx0213.c
index 61c9c3ce6d..e9179f605e 100644
--- a/iconvdata/shift_jisx0213.c
+++ b/iconvdata/shift_jisx0213.c
@@ -226,6 +226,9 @@
 	    STANDARD_FROM_LOOP_ERR_HANDLER (1);				      \
 	  }								      \
       }									      \
+    else 								      \
+      /* There was a pending character.  Clear it.  */			      \
+      *statep = 0;							      \
 									      \
     put32 (outptr, ch);							      \
     outptr += 4;							      \

base-commit: 6467136459cc86a4426e35ac8d8f9de4673b9f1f
-- 
2.55.0




More information about the Libc-alpha mailing list