This website requires JavaScript.
Explore
Help
Register
Sign In
c
/
libxml2
Watch
1
Star
0
Fork
0
You've already forked libxml2
mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced
2025-03-28 21:33:13 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
libxml2
/
result
/
errors
/
truncated-utf16.xml.err
4 lines
96 B
Plaintext
Raw
Normal View
History
Unescape
Escape
encoding: Detect truncated multi-byte sequences with ICU Unlike iconv or the internal converters, ICU consumes truncated multi- byte sequences at the end of an input buffer. We currently check for a non-empty raw input buffer to detect truncated sequences, so this fails with ICU. It might be possible to inspect the pivot buffer pointers, but it seems cleaner to implement a `flush` flag for some encoding and I/O functions. After flushing, we can check for U_TRUNCATED_CHAR_FOUND with ICU, or detect remaining input with other converters. Also fix detection of truncated sequences for HTML, XML content and DTDs with iconv.
2025-03-10 02:18:51 +01:00
./test/errors/truncated-utf16.xml:1: I/O error : Invalid bytes in character encoding
parser: Check for truncated multi-byte sequences When decoding input data, check whether the "raw" buffer is empty after parsing the document. Otherwise, the input ends with a truncated multi-byte sequence which shouldn't be silently ignored.
2023-08-08 15:21:37 +02:00
<d/>
^
Reference in New Issue
Copy Permalink