Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
10fac2e6
Commit
10fac2e6
authored
Mar 13, 2018
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: libmp4: fix zero length strings reading
parent
154cbf00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+10
-0
No files found.
modules/demux/mp4/libmp4.c
View file @
10fac2e6
...
...
@@ -105,6 +105,16 @@ static char *mp4_getstringz( uint8_t **restrict in, uint64_t *restrict size )
{
assert
(
*
size
<=
SSIZE_MAX
);
if
(
*
size
==
0
)
return
NULL
;
if
(
*
in
==
0
)
/* Null string stored */
{
*
in
+=
1
;
*
size
-=
1
;
return
NULL
;
}
size_t
len
=
strnlen
(
(
const
char
*
)
*
in
,
*
size
);
if
(
len
==
0
||
len
>=
*
size
)
return
NULL
;
...
...
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