> 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 endTag is handled. > > All other test/html/parser 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 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/10279/files - new: https://git.openjdk.org/jdk/pull/10279/files/8a7b5bb5..4296729f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=10279&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10279&range=00-01 Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/10279.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10279/head:pull/10279 PR: https://git.openjdk.org/jdk/pull/10279