Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
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
binwalk
Commits
519e7d37
Commit
519e7d37
authored
Dec 01, 2013
by
Dmitry Moiseev
Committed by
devttys0
Dec 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for argument math evaluation
parent
5cef3864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
smartsignature.py
src/binwalk/smartsignature.py
+5
-6
No files found.
src/binwalk/smartsignature.py
View file @
519e7d37
...
...
@@ -188,13 +188,12 @@ class SmartSignature:
arg
=
self
.
_get_keyword_arg
(
data
,
keyword
)
if
arg
:
for
string_int
in
arg
.
split
(
'+'
):
try
:
value
+=
str2int
(
string_int
)
except
:
self
.
invalid
=
True
if
re
.
match
(
"[0-9
\
+
\
-
\
*]*"
,
arg
):
value
=
eval
(
arg
)
else
:
self
.
invalid
=
True
return
value
return
value
def
_jump
(
self
,
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