Integrated: 7172359: HTML parser StackOverflowError on invalid HTML: <li> tag inside an <option>

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 14 09:08:23 UTC 2022


On Thu, 15 Sep 2022 08:05:29 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> If there is invalid tag, stack terminates but it still tries to recurse through by calling legalElementContext() which results in StackOverflowError.
> Fix is to return if stack is terminated after checking current tag is not valid in current context
> 
> All other test/html/parser as well as other jtreg suite tests are ok with the fix.

This pull request has now been integrated.

Changeset: 7133fc93
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7133fc93e168f3671d048b2ae654f84ec289b98d
Stats:     57 lines in 2 files changed: 57 ins; 0 del; 0 mod

7172359: HTML parser StackOverflowError on invalid HTML: <li> tag inside an <option>

Reviewed-by: tr, jdv, aivanov

-------------

PR: https://git.openjdk.org/jdk/pull/10279



More information about the client-libs-dev mailing list