Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
47cb79f0
Commit
47cb79f0
authored
Jan 27, 2019
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the rest of type conversions for printing
parent
2e2cb790
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
asn1-tools/unber/libasn1_unber_tool.c
asn1-tools/unber/libasn1_unber_tool.c
+7
-7
No files found.
asn1-tools/unber/libasn1_unber_tool.c
View file @
47cb79f0
...
...
@@ -153,7 +153,7 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
osprintfError
(
os
,
"%s: Too long TL sequence (%zd >= %zd) at %lld. "
"Broken or maliciously constructed file
\n
"
,
fname
,
tblen
,
limit
,
ibs
->
bytesRead
(
ibs
));
fname
,
tblen
,
limit
,
(
long
long
)
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
}
...
...
@@ -161,7 +161,7 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
osprintfError
(
os
,
"%s: Too long TL sequence (%zd bytes) at %lld. "
"Broken or maliciously constructed file
\n
"
,
fname
,
tblen
,
ibs
->
bytesRead
(
ibs
));
fname
,
tblen
,
(
long
long
)
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
}
...
...
@@ -171,8 +171,8 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
if
(
limit
>
0
||
expect_eoc
)
{
osprintfError
(
os
,
"%s: Unexpected end of file (TL)"
" at %
zu
\n
"
,
fname
,
(
size_t
)
ibs
->
bytesRead
(
ibs
));
" at %
lld
\n
"
,
fname
,
(
long
long
)
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
}
else
{
return
PD_EOF
;
...
...
@@ -189,8 +189,8 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
case
-
1
:
osprintfError
(
os
,
"%s: Fatal error decoding tag"
" at %
zu
\n
"
,
fname
,
(
size_t
)
ibs
->
bytesRead
(
ibs
));
" at %
lld
\n
"
,
fname
,
(
long
long
)
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
case
0
:
/* More data expected */
...
...
@@ -318,7 +318,7 @@ print_TL(output_stream_t *os, int fin, off_t offset, int level, int constr,
osprintf
(
os
,
constr
?
((
tlv_len
==
-
1
)
?
"I"
:
"C"
)
:
"P"
);
/* Print out the offset of this boundary, even if closing tag */
if
(
!
minimalistic
)
osprintf
(
os
,
" O=
\"
%lld
\"
"
,
offset
);
if
(
!
minimalistic
)
osprintf
(
os
,
" O=
\"
%lld
\"
"
,
(
long
long
)
offset
);
osprintf
(
os
,
" T=
\"
%s
\"
"
,
ber_tlv_tag_string
(
tlv_tag
));
...
...
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