Files
yara/tests
jmestwa-coder 129cdc43fb bound rule table index in OP_PUSH_RULE and OP_INIT_RULE (#2230)
Rule index read from compiled bytecode is used to index rules_table without a bounds check:
- OP_PUSH_RULE dereferences rules_table[r1.i] and indexes rule_matches_flags with the same value, unchecked
- OP_INIT_RULE only had an assert, which is a no-op under NDEBUG
- OP_MATCH_RULE right below them already guards the index with ensure_within_rules_arena

Added the same YR_PARANOID_EXEC guard to both. A crafted .yrc with an out-of-range rule index reaches this through yr_rules_scan_mem and reads past the table; test-exec covers it.
2026-07-22 08:57:13 +02:00
..
2020-10-08 11:52:55 +02:00
2021-08-24 11:12:16 +02:00
2022-08-26 12:04:32 +02:00
2020-12-24 10:46:09 +01:00
2024-01-15 22:31:18 +01:00
2024-01-15 16:34:12 +01:00