Commit 67aab91
committed
Merge pull request atomvm#515 from pguyot/w16/fix-binary_to_term-used-crash
Fix crash related to binary_to_term
If `MIN_FREE_SPACE_SIZE` is 0, or if allocation strategy is fixed, this crashes.
Fix the crash with a hack that consists in using ctx->x[0] as a GC root.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2511 | 2511 | | |
2512 | 2512 | | |
2513 | 2513 | | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
2514 | 2519 | | |
2515 | | - | |
| 2520 | + | |
2516 | 2521 | | |
2517 | 2522 | | |
2518 | 2523 | | |
| |||
0 commit comments