[PATCH v3 2/3] iconvdata: EUC_JISX0213 decoding lacks pending character reset (CVE-2026-80489)

Florian Weimer <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <62286323ab85f31918715366a8da9396bec08e13.1787831837.git.fweimer@redhat.com>
This fixes bug 34568.
---
v3: Split into separate bugs with distinct CVE IDs, as requested.
 iconvdata/euc-jisx0213.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iconvdata/euc-jisx0213.c b/iconvdata/euc-jisx0213.c
index 5572bbdb7b..61c22231e1 100644
--- a/iconvdata/euc-jisx0213.c
+++ b/iconvdata/euc-jisx0213.c
@@ -224,6 +224,9 @@
 	    STANDARD_FROM_LOOP_ERR_HANDLER (1);				      \
 	  }								      \
       }									      \
+    else 								      \
+      /* There was a pending character.  Clear it.  */			      \
+      *statep = 0;							      \
 									      \
     put32 (outptr, ch);							      \
     outptr += 4;							      \
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.