RFR: 8240211: Stack overflow on Windows 32-bit can lead to crash
    Kevin Rushforth 
    kcr at openjdk.java.net
       
    Thu Mar  5 16:20:25 UTC 2020
    
    
  
On Thu, 5 Mar 2020 14:51:03 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:
> Issue: The stack pointer is checked close to the stack limit during the last iteration of calling frameLoaded() and then, grows beyond the thread's stack range causing a stack overflow and crashes. This occurs as the stack grows by an amount larger than the reserved zone at the end of the stack.
> 
> Fix: Reduce the stack range visible to the thread in [StackBounds.cpp](https://github.com/openjdk/jfx/blob/master/modules/javafx.web/src/main/native/Source/WTF/wtf/StackBounds.cpp) similar to Mac and Linux. This causes the stack pointer check to throw a StackOverflowError during the last iteration.
I will review this.
@guruhb can you also review it?
-------------
PR: https://git.openjdk.java.net/jfx/pull/137
    
    
More information about the openjfx-dev
mailing list