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
bfd3f886
Commit
bfd3f886
authored
Nov 24, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed magic.py duplicates bug; fixed binvis python3 bug.
parent
d1527895
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
magic.py
src/binwalk/core/magic.py
+2
-2
binvis.py
src/binwalk/modules/binvis.py
+1
-1
No files found.
src/binwalk/core/magic.py
View file @
bfd3f886
...
...
@@ -754,8 +754,8 @@ class Magic(object):
# If this offset has already been matched to a previous signature, ignore it unless
# self.show_invalid has been specified. Also ignore obviously invalid offsets (<1)
# as well as those outside the specified self.data range (dlen).
#
if (offset not in matched_offsets or self.show_invalid) and offset >= 0 and offset < dlen:
if
offset
>=
0
and
offset
<
dlen
:
if
(
offset
not
in
matched_offsets
or
self
.
show_invalid
)
and
offset
>=
0
and
offset
<
dlen
:
#
if offset >= 0 and offset < dlen:
# Analyze the data at this offset using the current signature rule
tags
=
self
.
_analyze
(
signature
,
offset
)
...
...
src/binwalk/modules/binvis.py
View file @
bfd3f886
...
...
@@ -98,7 +98,7 @@ class Plotter(Module):
# If the number of data points exceeds the maximum number of allowed data points, use a
# weighting system to eliminate data points that occur less freqently.
if
sum
(
data_points
.
iter
values
())
>
self
.
max_points
:
if
sum
(
data_points
.
values
())
>
self
.
max_points
:
# First, generate a set of weight values 1 - 10
for
i
in
range
(
1
,
11
):
...
...
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