-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Statically initialize
caml_global_data
with a valid value (#11788)
The default initial value (0) is not a valid value in no-naked-pointers mode, causing a segfault if a GC is triggered while reading the global data from a bytecode executable. Repro case: ``` let _ = " " (* 10 million spaces *) ``` Fixes: #11768
- Loading branch information
1 parent
85a0817
commit 7b35ef7
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters