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
Jul 30, 2018
by
Bartholomew De la Villardière
Committed by
Victor M. Alvarez
Jul 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OverflowError when match is call on large data (#81)
parent
8590aca8
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.
...
@@ -15,6 +15,8 @@ limitations under the License.
*/
*/
/* headers */
/* headers */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <Python.h>
#include "structmember.h"
#include "structmember.h"
...
@@ -1348,7 +1350,7 @@ static PyObject* Rules_match(
...
@@ -1348,7 +1350,7 @@ static PyObject* Rules_match(
int
pid
=
0
;
int
pid
=
0
;
int
timeout
=
0
;
int
timeout
=
0
;
int
length
;
Py_ssize_t
length
=
0
;
int
error
=
ERROR_SUCCESS
;
int
error
=
ERROR_SUCCESS
;
int
fast_mode
=
0
;
int
fast_mode
=
0
;
...
@@ -1468,7 +1470,7 @@ static PyObject* Rules_match(
...
@@ -1468,7 +1470,7 @@ static PyObject* Rules_match(
error
=
yr_rules_scan_mem
(
error
=
yr_rules_scan_mem
(
object
->
rules
,
object
->
rules
,
(
unsigned
char
*
)
data
,
(
unsigned
char
*
)
data
,
(
unsigned
in
t
)
length
,
(
size_
t
)
length
,
fast_mode
?
SCAN_FLAGS_FAST_MODE
:
0
,
fast_mode
?
SCAN_FLAGS_FAST_MODE
:
0
,
yara_callback
,
yara_callback
,
&
callback_data
,
&
callback_data
,
...
...
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