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
9fea6f98
Commit
9fea6f98
authored
Aug 25, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv: avoid potential NULL memory comparison
memcmp(NULL, b, 0) and memcpy(a, NULL, 0) are undefined in ISO C.
parent
a1c81a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/demux/mkv/virtual_segment.cpp
modules/demux/mkv/virtual_segment.cpp
+1
-1
No files found.
modules/demux/mkv/virtual_segment.cpp
View file @
9fea6f98
...
...
@@ -663,7 +663,7 @@ void virtual_segment_c::ChangeSegment( matroska_segment_c * p_old, matroska_segm
(
p_nfmt
->
i_priority
==
p_ofmt
->
i_priority
)
&&
(
p_nfmt
->
i_bitrate
==
p_ofmt
->
i_bitrate
)
&&
(
p_nfmt
->
i_extra
==
p_ofmt
->
i_extra
)
&&
(
(
!
p_nfmt
->
p_extra
&&
!
p_ofmt
->
p_extra
)
||
(
p_nfmt
->
i_extra
==
0
||
!
memcmp
(
p_nfmt
->
p_extra
,
p_ofmt
->
p_extra
,
p_nfmt
->
i_extra
)
)
&&
!
strcasecmp
(
p_nfmt
->
psz_language
,
p_ofmt
->
psz_language
)
&&
(
(
p_nfmt
->
i_cat
==
AUDIO_ES
&&
...
...
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