File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ static bool dom_decode_encode_fast_path(
511
511
const lxb_char_t * last_output = buf_ref ;
512
512
while (buf_ref != buf_end ) {
513
513
const lxb_char_t * buf_ref_backup = buf_ref ;
514
- lxb_codepoint_t codepoint = decoding_encoding_ctx -> decode_data -> decode_single (& decoding_encoding_ctx -> decode , & buf_ref , buf_end );
514
+ /* Fast path converts non-validated UTF-8 -> validated UTF-8 */
515
+ lxb_codepoint_t codepoint = lxb_encoding_decode_utf_8_single (& decoding_encoding_ctx -> decode , & buf_ref , buf_end );
515
516
if (UNEXPECTED (codepoint > LXB_ENCODING_MAX_CODEPOINT )) {
516
517
size_t skip = buf_ref - buf_ref_backup ; /* Skip invalid data, it's replaced by the UTF-8 replacement bytes */
517
518
if (!dom_process_parse_chunk (
You can’t perform that action at this time.
0 commit comments