VirusTotal / yara-python

The Python interface for YARA
http://virustotal.github.io/yara/
Apache License 2.0
648 stars 179 forks source link

Segmentation fault iterating over a rule with non-ascii chars in meta #149

Closed joseotoro closed 4 years ago

joseotoro commented 4 years ago

yar.yar file:

rule Test {
  meta:
      author = "ñ"
  strings:
      $foo1 = "foo1"
  condition:
      $foo1
}
>>> import yara
>>> f = yara.compile('yar.yar')
>>> f.next()
[1]    12175 segmentation fault  python

Tried running the rule with Yara:

➜ yara -m yar.yar .
Test [description="\303\261"] ./yar.yar