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
844333aa
Commit
844333aa
authored
6 years ago
by
Bartholomew De la Villardière
Committed by
Victor M. Alvarez
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OverflowError when match is call on large data (#81)
parent
8590aca8
master
…
v4.4.0
v4.3.1
v4.3.0
v4.2.3
v4.2.0
v4.1.3
v4.1.2
v4.1.0
v4.0.5
v4.0.4
v4.0.3
v4.0.2
v4.0.1
v4.0.0
v3.11.0
v3.10.0
v3.9.0
v3.8.1
v3.8.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
yara-python.c
yara-python.c
+4
-2
No files found.
yara-python.c
View file @
844333aa
...
...
@@ -15,6 +15,8 @@ limitations under the License.
*/
/* headers */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
...
...
@@ -1348,7 +1350,7 @@ static PyObject* Rules_match(
int
pid
=
0
;
int
timeout
=
0
;
int
length
;
Py_ssize_t
length
=
0
;
int
error
=
ERROR_SUCCESS
;
int
fast_mode
=
0
;
...
...
@@ -1468,7 +1470,7 @@ static PyObject* Rules_match(
error
=
yr_rules_scan_mem
(
object
->
rules
,
(
unsigned
char
*
)
data
,
(
unsigned
in
t
)
length
,
(
size_
t
)
length
,
fast_mode
?
SCAN_FLAGS_FAST_MODE
:
0
,
yara_callback
,
&
callback_data
,
...
...
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