Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
730a93d4
Commit
730a93d4
authored
Jul 06, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed potential invalid reads.
parent
113f18e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/flac.c
modules/demux/flac.c
+3
-3
No files found.
modules/demux/flac.c
View file @
730a93d4
...
...
@@ -678,17 +678,17 @@ static void ParsePicture( demux_t *p_demux, const uint8_t *p_data, int i_data )
i_type
=
GetDWBE
(
p_data
);
RM
(
4
);
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
if
(
i_data
<
i_len
+
4
)
if
(
i_
len
<
0
||
i_
data
<
i_len
+
4
)
goto
error
;
psz_mime
=
strndup
(
p_data
,
i_len
);
RM
(
i_len
);
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
if
(
i_data
<
i_len
+
4
*
4
+
4
)
if
(
i_
len
<
0
||
i_
data
<
i_len
+
4
*
4
+
4
)
goto
error
;
psz_description
=
strndup
(
p_data
,
i_len
);
RM
(
i_len
);
EnsureUTF8
(
psz_description
);
RM
(
4
*
4
);
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
if
(
i_len
>
i_data
)
if
(
i_len
<
0
||
i_len
>
i_data
)
goto
error
;
msg_Dbg
(
p_demux
,
"FLAC: Picture type=%d mime=%s description='%s' file length=%d"
,
...
...
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