Skip to content

Commit

Permalink
8240211: Stack overflow on Windows 32-bit can lead to crash
Browse files Browse the repository at this point in the history
Reviewed-by: ghb, kcr, jvos
  • Loading branch information
arun-joseph authored and kevinrushforth committed Mar 5, 2020
1 parent 337ed72 commit cf0bba6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ StackBounds StackBounds::currentThreadStackBoundsInternal()
#endif
#endif // NDEBUG
void* bound = static_cast<char*>(endOfStack) + guardPage.RegionSize;
#if PLATFORM(JAVA)
bound = static_cast<char*>(bound) + JAVA_RED_ZONE;
#endif
return StackBounds { origin, bound };
}

Expand Down

0 comments on commit cf0bba6

Please sign in to comment.