-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow spell comments in TH08 to have no null
Some files were failing to recompile at all because apparently some of the spell comments use all 64 bytes. This is safe because they are memcpied (not strcpied) into a larger buffer that is zero initialized, but... ffs.
- Loading branch information
Showing
8 changed files
with
87 additions
and
8 deletions.
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
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
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
13 changes: 13 additions & 0 deletions
13
...ompile-fail/integration__integration__strings__compile_string_arg_too_big_gt_nulless.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: tests/integration/strings.rs | ||
expression: stderr | ||
--- | ||
error: string argument too large for buffer | ||
┌─ <input>:10:13 | ||
│ | ||
10 │ nulless("abcdefghi"); | ||
│ ^^^^^^^^^^^ requires 9 bytes | ||
│ | ||
= this argument is written to a 8-byte buffer | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
tests/compile-fail/integration__integration__strings__decompile_string_arg_with_null_4.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: tests/integration/strings.rs | ||
expression: stderr | ||
--- | ||
warning: <compiled-file>: in sub0: instr 0 (opcode 666, offset 0x0): argument 1: string will be truncated at first null | ||
|
||
|
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