Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
2daffa60
Commit
2daffa60
authored
7 years ago
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update yara submodule and disable includes by calling yr_compiler_set_include_callback with NULL.
parent
b68d85f5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
tests.py
tests.py
+3
-0
yara
yara
+1
-1
yara-python.c
yara-python.c
+2
-1
No files found.
tests.py
View file @
2daffa60
...
...
@@ -755,6 +755,9 @@ class TestYara(unittest.TestCase):
r
=
yara
.
compile
(
p2
)
self
.
assertTrue
(
len
(
r
.
match
(
data
=
'dummy'
))
==
2
)
with
self
.
assertRaises
(
yara
.
SyntaxError
):
yara
.
compile
(
source
=
'include "test"'
,
includes
=
False
)
def
testExternals
(
self
):
r
=
yara
.
compile
(
source
=
'rule test { condition: ext_int == 15 }'
,
externals
=
{
'ext_int'
:
15
})
...
...
This diff is collapsed.
Click to expand it.
yara
@
80874eba
Subproject commit
a33ab375471865225b41299d14a4083942c852ff
Subproject commit
80874eba1c9358647c6e25eb84ea50cf594f9ef1
This diff is collapsed.
Click to expand it.
yara-python.c
View file @
2daffa60
...
...
@@ -1781,7 +1781,8 @@ static PyObject* yara_compile(
if
(
PyBool_Check
(
includes
))
{
// PyObject_IsTrue can return -1 in case of error
compiler
->
allow_includes
=
(
PyObject_IsTrue
(
includes
)
==
1
);
if
(
PyObject_IsTrue
(
includes
)
==
1
)
yr_compiler_set_include_callback
(
compiler
,
NULL
,
NULL
,
NULL
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment