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
19c5d079
Commit
19c5d079
authored
Jan 22, 2019
by
Mouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fixed format errors ("long long" format for "long" argument)"
This reverts commit
615295a4
.
parent
01e8d1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
asn1-tools/unber/libasn1_unber_tool.c
asn1-tools/unber/libasn1_unber_tool.c
+3
-3
No files found.
asn1-tools/unber/libasn1_unber_tool.c
View file @
19c5d079
...
...
@@ -151,7 +151,7 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
if
(
limit
>=
0
&&
tblen
>=
limit
)
{
osprintfError
(
os
,
"%s: Too long TL sequence (%zd >= %zd) at %ld. "
"%s: Too long TL sequence (%zd >= %zd) at %l
l
d. "
"Broken or maliciously constructed file
\n
"
,
fname
,
tblen
,
limit
,
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
...
...
@@ -159,7 +159,7 @@ process_deeper(const char *fname, input_stream_t *ibs, output_stream_t *os,
if
(
tblen
>=
(
ssize_t
)
sizeof
(
tagbuf
))
{
osprintfError
(
os
,
"%s: Too long TL sequence (%zd bytes) at %ld. "
"%s: Too long TL sequence (%zd bytes) at %l
l
d. "
"Broken or maliciously constructed file
\n
"
,
fname
,
tblen
,
ibs
->
bytesRead
(
ibs
));
return
PD_FAILED
;
...
...
@@ -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=
\"
%ld
\"
"
,
offset
);
if
(
!
minimalistic
)
osprintf
(
os
,
" O=
\"
%l
l
d
\"
"
,
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