Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
407acf38
Commit
407acf38
authored
Apr 26, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg_audio: signed integer overflow
(with (uint8_t)255 << (int)24)
parent
de7b556d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+2
-4
No files found.
modules/codec/mpeg_audio.c
View file @
407acf38
...
...
@@ -264,8 +264,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
/* Build frame header */
i_header
=
(
p_header
[
0
]
<<
24
)
|
(
p_header
[
1
]
<<
16
)
|
(
p_header
[
2
]
<<
8
)
|
p_header
[
3
];
i_header
=
GetDWBE
(
p_header
);
/* Check if frame is valid and get frame info */
p_sys
->
i_frame_size
=
SyncInfo
(
i_header
,
...
...
@@ -324,8 +323,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
unsigned
int
i_next_layer
;
/* Build frame header */
i_header
=
(
p_header
[
0
]
<<
24
)
|
(
p_header
[
1
]
<<
16
)
|
(
p_header
[
2
]
<<
8
)
|
p_header
[
3
];
i_header
=
GetDWBE
(
p_header
);
i_next_frame_size
=
SyncInfo
(
i_header
,
&
i_next_channels
,
...
...
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