Because we are using a map for strings, the anonymous $ identifier cannot be duplicated in the yara-parser implementation. This would be allowed in libyara.
We should probably just follow libyara and make the strings and metas lists (slices), and then check at runtime that string identifiers are not being duplicated, making an exception for the anonymous $ identifier.
Because we are using a map for strings, the anonymous
$
identifier cannot be duplicated in the yara-parser implementation. This would be allowed in libyara.We should probably just follow libyara and make the strings and metas lists (slices), and then check at runtime that string identifiers are not being duplicated, making an exception for the anonymous
$
identifier.