Skip to content

Commit

Permalink
Fix compiler crash
Browse files Browse the repository at this point in the history
This fixes a compiler crash while parsing the invalid YARA rules described in #1992. The root of the issue was the incorrect initialization of a `YR_EXPRESSION` structure where the type was set to `EXPRESSION_TYPE_STRING` but the value was initialized as an integer and set to `YR_UNDEFINED`. As the value is an union type, this undefined integer was later interpreted as an arena reference via the `sized_string_ref` union field.

Closes #1992.
  • Loading branch information
plusvic committed Nov 16, 2023
1 parent 587c10a commit b26b000
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 354 deletions.
Loading

0 comments on commit b26b000

Please sign in to comment.