Commit b4d0179
committed
Steal the ownership of the string in string_hash_to_newline to avoid use-after-free issues
Before, GML code like this "string_hash_to_newline(string("a"))" would cause issues, because string() returns a owning string
To fix this, we now "steal" the ownership of the string, to let the "ownership" of the string to be passed from string to string_hash_to_newline1 parent bb2551a commit b4d0179
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4515 | 4515 | | |
4516 | 4516 | | |
4517 | 4517 | | |
4518 | | - | |
| 4518 | + | |
4519 | 4519 | | |
4520 | 4520 | | |
4521 | 4521 | | |
| |||
4528 | 4528 | | |
4529 | 4529 | | |
4530 | 4530 | | |
4531 | | - | |
4532 | | - | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
4533 | 4534 | | |
4534 | 4535 | | |
4535 | 4536 | | |
| |||
0 commit comments