-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow larger jumps in hex patterns.
The limit was 65535 because 16-bits integers were used for storing the jump ranges. Now we are using 32-bits integers. Closes #238
- Loading branch information
Showing
5 changed files
with
10 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
rule test { | ||
strings: | ||
$a = { 11 [0-65536] 22 } | ||
$a = { 11 [0-4294967296] 22 } | ||
condition: | ||
$a | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
error[E027]: invalid integer | ||
--> line:3:18 | ||
| | ||
3 | $a = { 11 [0-65536] 22 } | ||
| ^^^^^ this number is out of the valid range: [0, 65535] | ||
3 | $a = { 11 [0-4294967296] 22 } | ||
| ^^^^^^^^^^ this number is out of the valid range: [0, 4294967295] | ||
| |
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