1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00
Files
archived-php-src/ext/dom
Niels Dossche 1e949d189a Fix edge-case in DOM parsing decoding
There are three connected subtle issues:
1) The fast path didn't correctly handle the case where the decoder
   requests more data. This caused a bogus additional replacement
   sequence to be outputted when encountering an incomplete sequence at
   the edges of a buffer.
2) The finishing of decoding incorrectly assumed that the fast path
   cannot be in a state where the last few bytes were an incomplete
   sequence, but this is not true as shown by test 08.
3) The finishing of decoding could output bytes twice because it called
   into dom_process_parse_chunk() twice without clearing the decoded
   data. However, calling twice is not even necessary as the entire
   buffer cannot be filled up entirely.

Closes GH-16226.
2024-10-05 18:27:18 +02:00
..
2024-08-25 14:19:11 +02:00
2024-09-23 22:19:15 +02:00
2024-06-29 15:18:34 +01:00
2024-08-31 11:56:34 +02:00
2024-06-29 13:00:26 -07:00
2024-10-01 21:03:31 +02:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-08-31 11:56:34 +02:00
2024-06-26 12:17:12 -07:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-10-03 19:33:09 +02:00
2024-08-31 11:56:34 +02:00
2024-05-13 19:46:51 +02:00
2024-08-31 11:56:34 +02:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-07-02 21:34:23 +02:00
2024-07-02 21:34:23 +02:00
2024-07-15 11:10:51 +02:00
2024-07-15 11:10:51 +02:00
2024-07-18 16:54:46 +02:00