Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
0e54b950
Commit
0e54b950
authored
15 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Fixed infinite recursion in ASN1 BER codec
parent
254897e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/asn1/ber.py
+1
-1
1 addition, 1 deletion
scapy/asn1/ber.py
with
1 addition
and
1 deletion
scapy/asn1/ber.py
+
1
−
1
View file @
0e54b950
...
@@ -233,7 +233,7 @@ class BERcodec_NULL(BERcodec_INTEGER):
...
@@ -233,7 +233,7 @@ class BERcodec_NULL(BERcodec_INTEGER):
if
i
==
0
:
if
i
==
0
:
return
chr
(
cls
.
tag
)
+
"
\0
"
return
chr
(
cls
.
tag
)
+
"
\0
"
else
:
else
:
return
super
(
cls
,
cls
)
.
enc
(
i
)
return
BERcodec_INTEGER
.
enc
(
i
)
class
BERcodec_SEP
(
BERcodec_NULL
):
class
BERcodec_SEP
(
BERcodec_NULL
):
tag
=
ASN1_Class_UNIVERSAL
.
SEP
tag
=
ASN1_Class_UNIVERSAL
.
SEP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment