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-gitdep
binwalk
Commits
9dd686cb
Commit
9dd686cb
authored
Jan 07, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed math smart keyword bugs
parent
718d0aa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
smart.py
src/binwalk/core/smart.py
+5
-5
No files found.
src/binwalk/core/smart.py
View file @
9dd686cb
...
@@ -226,11 +226,11 @@ class Signature(object):
...
@@ -226,11 +226,11 @@ class Signature(object):
Returns the modified string result data.
Returns the modified string result data.
'''
'''
while
tag
.
keyword
in
data
:
while
tag
.
tag
in
self
.
safe_string
(
data
)
:
(
data
,
arg
)
=
self
.
get_keyword_arg
(
data
,
tag
.
name
)
(
data
,
arg
)
=
self
.
get_keyword_arg
(
data
,
tag
)
v
=
'
%
s
%
s
%
s'
%
(
tag
.
keyword
,
arg
,
self
.
TAG_DELIM_END
)
v
=
'
%
s
%
s
%
s'
%
(
tag
.
tag
,
arg
,
tag
.
TAG_DELIM_END
)
math_value
=
"
%
d"
%
self
.
get_math_arg
(
data
,
tag
.
name
)
(
data
,
math_value
)
=
self
.
get_math_arg
(
data
,
tag
)
data
=
data
.
replace
(
v
,
math_value
)
data
=
data
.
replace
(
v
,
"
%
d"
%
math_value
)
return
(
data
,
None
)
return
(
data
,
None
)
...
...
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