Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
ddcf5d1c
Commit
ddcf5d1c
authored
Sep 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: check stream_Read() (probably fixes #12276)
stream_Read() can always fail.
parent
cd734d3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/input/demux.c
src/input/demux.c
+4
-2
No files found.
src/input/demux.c
View file @
ddcf5d1c
...
...
@@ -398,7 +398,8 @@ static bool SkipID3Tag( demux_t *p_demux )
i_size
+=
10
;
/* Skip the entire tag */
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
);
if
(
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
)
<
i_size
)
return
false
;
msg_Dbg
(
p_demux
,
"ID3v2.%d revision %d tag found, skipping %d bytes"
,
version
,
revision
,
i_size
);
...
...
@@ -429,7 +430,8 @@ static bool SkipAPETag( demux_t *p_demux )
i_size
=
GetDWLE
(
&
p_peek
[
8
+
4
]
)
+
(
(
flags
&
(
1
<<
30
))
?
32
:
0
);
/* Skip the entire tag */
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
);
if
(
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
)
<
i_size
)
return
false
;
msg_Dbg
(
p_demux
,
"AP2 v%d tag found, skipping %d bytes"
,
i_version
/
1000
,
i_size
);
...
...
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