From ac4ebc8d0736ae728513c56478057b90e1fc86e0 Mon Sep 17 00:00:00 2001 From: dmsnell Date: Tue, 6 Aug 2024 20:43:18 +0000 Subject: [PATCH] HTML API: Truncated funky comments should cause the Tag Processor to pause. A state change was missing in the Tag Processor when the input is too short to find a comment closer after an opened funky comment. This patch fixes a issue where `is_closing_tag ) { // No chance of finding a closer. if ( $at + 3 > $doc_length ) { + $this->parser_state = self::STATE_INCOMPLETE_INPUT; + return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3cf817eb4a..ebb704edcb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58857'; +$wp_version = '6.7-alpha-58858'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.