odin1314 / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

namespaces not working with yara.compile and filesources #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to use namespaces with yara-python and 'filesources'

What is the expected output? What do you see instead?
Namespaces should be created based on dictionary keys. No namespaces are
ever created when using 'filesources' and yara.compile.

What version of the product are you using? On what operating system?
yara-python v1.4

Please provide any additional information below.
It looks like yara.compile() will create namespaces from dictionary keys if
'sources' is used as the argument. While the docs suggest that the same is
true for 'filesources' it doesn't actually work. A quick browse in the
source and it looks like the context for each file in 'filesources' is
never setup in the same was as is done with 'sources'

Original issue reported on code.google.com by sadde...@gmail.com on 4 Jun 2010 at 4:16

GoogleCodeExporter commented 9 years ago
You're right. Thanks for this very detailed bug report. Fixed on r78.

Original comment by plus...@gmail.com on 4 Jun 2010 at 4:48