Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.8.1SDK
-
None
Description
The protect block mechanism has a provision to handle nested protect blocks. It does this by keeping a stack of nested contexts.
The close of the protect block checks to see if nested protect blocks were not closed. If this is the case, the nested ones are closed automatically starting with the most deeply nested one. The logic for doing this has an off-by-one error, which would result in an array index out of bounds.