Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
55c531ca
Commit
55c531ca
authored
Mar 18, 2015
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_decode_length, _decode_tag: needs "except?" clauses.
parent
63869d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coro/asn1/ber.pyx
coro/asn1/ber.pyx
+2
-2
No files found.
coro/asn1/ber.pyx
View file @
55c531ca
...
...
@@ -581,7 +581,7 @@ cdef object decode_boolean (unsigned char * s, long * pos, long length):
else
:
return
False
cdef
long
_decode_length
(
unsigned
char
*
s
,
long
*
pos
,
long
lol
):
cdef
long
_decode_length
(
unsigned
char
*
s
,
long
*
pos
,
long
lol
)
except
?
-
1
:
# actually supports only up to 32-bit lengths
cdef
unsigned
long
i
,
n
n
=
0
...
...
@@ -604,7 +604,7 @@ cdef check_has (long * pos, unsigned int n, long eos):
if
pos
[
0
]
+
n
>
eos
:
raise
InsufficientData
(
pos
[
0
],
n
,
eos
)
cdef
long
_decode_tag
(
unsigned
char
*
s
,
long
*
pos
,
long
eos
,
uint8_t
*
flags
):
cdef
long
_decode_tag
(
unsigned
char
*
s
,
long
*
pos
,
long
eos
,
uint8_t
*
flags
)
except
?
-
1
:
cdef
unsigned
long
r
=
0
cdef
uint8_t
b
=
s
[
pos
[
0
]]
inc_pos
(
pos
,
1
,
eos
)
...
...
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