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
fe52a658
Commit
fe52a658
authored
Dec 24, 2020
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update yara submodule and stop using deprecated fields.
parent
53208e09
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
yara
yara
+1
-1
yara-python.c
yara-python.c
+4
-4
No files found.
yara
@
60d85720
Subproject commit
cba6932759ec16a61288b1314b3aee1103ad03ec
Subproject commit
60d857203f808c2e580a377a211e6c3c5c9520ab
yara-python.c
View file @
fe52a658
...
...
@@ -1320,7 +1320,7 @@ static PyObject* Rules_next(
if
(
RULE_IS_NULL
(
rules
->
iter_current_rule
))
{
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
list_head
;
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
table
;
PyErr_SetNone
(
PyExc_StopIteration
);
return
NULL
;
}
...
...
@@ -2172,7 +2172,7 @@ static PyObject* yara_compile(
if
(
error
==
ERROR_SUCCESS
)
{
rules
->
rules
=
yara_rules
;
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
list_head
;
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
table
;
if
(
externals
!=
NULL
&&
externals
!=
Py_None
)
rules
->
externals
=
PyDict_Copy
(
externals
);
...
...
@@ -2273,8 +2273,8 @@ static PyObject* yara_load(
"load() expects either a file path or a file-like object"
);
}
external
=
rules
->
rules
->
ext
ernals_list_head
;
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
list_head
;
external
=
rules
->
rules
->
ext
_vars_table
;
rules
->
iter_current_rule
=
rules
->
rules
->
rules_
table
;
if
(
!
EXTERNAL_VARIABLE_IS_NULL
(
external
))
rules
->
externals
=
PyDict_New
();
...
...
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