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
5c0aec3f
Commit
5c0aec3f
authored
Mar 16, 2021
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finally fix #170.
The previous commit was still wrong.
parent
8b7890b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
yara-python.c
yara-python.c
+7
-5
No files found.
yara-python.c
View file @
5c0aec3f
...
...
@@ -804,11 +804,13 @@ int yara_callback(
return
CALLBACK_CONTINUE
;
case
CALLBACK_MSG_RULE_NOT_MATCHING
:
// If the rule doesn't match and the user has not specified that they want
// to see non-matches then there's nothing more to do and we return
// CALLBACK_CONTINUE, keep executing the function if otherwise.
// In cases where the rule doesn't match and the user didn't provided a
// callback function or is not interested in getting notified about
// non-matches, there's nothing more do to here, keep executing the function
// if otherwise.
if
((
which
&
CALLBACK_NON_MATCHES
)
!=
CALLBACK_NON_MATCHES
)
if
(
callback
==
NULL
||
(
which
&
CALLBACK_NON_MATCHES
)
!=
CALLBACK_NON_MATCHES
)
return
CALLBACK_CONTINUE
;
}
...
...
@@ -1616,6 +1618,7 @@ static PyObject* Rules_match(
callback_data
.
matches
=
PyList_New
(
0
);
Py_BEGIN_ALLOW_THREADS
error
=
yr_rules_scan_file
(
object
->
rules
,
filepath
,
...
...
@@ -1624,7 +1627,6 @@ static PyObject* Rules_match(
&
callback_data
,
timeout
);
Py_END_ALLOW_THREADS
}
else
if
(
data
.
buf
!=
NULL
)
...
...
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