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
6a526cd8
Commit
6a526cd8
authored
Jun 23, 2020
by
Mouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@SongShawn found a bug in vasprintf().
parent
bc3e93a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libasn1common/asn1_buffer.c
libasn1common/asn1_buffer.c
+1
-1
No files found.
libasn1common/asn1_buffer.c
View file @
6a526cd8
...
@@ -151,7 +151,7 @@ vasprintf(char **ret, const char *fmt, va_list args) {
...
@@ -151,7 +151,7 @@ vasprintf(char **ret, const char *fmt, va_list args) {
if
(
suggested
>=
0
)
{
if
(
suggested
>=
0
)
{
*
ret
=
malloc
(
suggested
+
1
);
*
ret
=
malloc
(
suggested
+
1
);
if
(
*
ret
)
{
if
(
*
ret
)
{
int
actual_length
=
vsnprintf
(
*
ret
,
suggested
+
1
,
fmt
,
copy
);
actual_length
=
vsnprintf
(
*
ret
,
suggested
+
1
,
fmt
,
copy
);
if
(
actual_length
>=
0
)
{
if
(
actual_length
>=
0
)
{
assert
(
actual_length
==
suggested
);
assert
(
actual_length
==
suggested
);
assert
((
*
ret
)[
actual_length
]
==
'\0'
);
assert
((
*
ret
)[
actual_length
]
==
'\0'
);
...
...
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