RFR: 7172359: HTML parser StackOverflowError on invalid HTML: <li> tag inside an <option> [v2]

Tejesh R tr at openjdk.org
Mon Sep 26 05:13:40 UTC 2022


On Thu, 22 Sep 2022 12:23:36 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.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Return only if current tag is not valid in current context

Fix is tested and works fine.

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

Marked as reviewed by tr (Author).

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



More information about the client-libs-dev mailing list