Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ed08cbd7
Commit
ed08cbd7
authored
Dec 03, 2015
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacenc_ltp: fix out of bounds memory access
Discovered by Coverity.
parent
4e31176e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
aacenc_ltp.c
libavcodec/aacenc_ltp.c
+1
-1
aac.mak
tests/fate/aac.mak
+1
-1
No files found.
libavcodec/aacenc_ltp.c
View file @
ed08cbd7
...
...
@@ -167,7 +167,7 @@ void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce,
if
(
sce
->
ics
.
window_sequence
[
0
]
==
EIGHT_SHORT_SEQUENCE
)
{
if
(
sce
->
ics
.
ltp
.
lag
)
{
memset
(
&
sce
->
l
coeffs
[
0
],
0
.
0
f
,
3072
*
sizeof
(
sce
->
lcoeffs
[
0
]));
memset
(
&
sce
->
l
tp_state
[
0
],
0
,
3072
*
sizeof
(
sce
->
ltp_state
[
0
]));
memset
(
&
sce
->
ics
.
ltp
,
0
,
sizeof
(
LongTermPrediction
));
}
return
;
...
...
tests/fate/aac.mak
View file @
ed08cbd7
...
...
@@ -209,7 +209,7 @@ fate-aac-ltp-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re
fate-aac-ltp-encode: CMP = stddev
fate-aac-ltp-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
fate-aac-ltp-encode: CMP_SHIFT = -4096
fate-aac-ltp-encode: CMP_TARGET = 12
84
fate-aac-ltp-encode: CMP_TARGET = 12
73
fate-aac-ltp-encode: SIZE_TOLERANCE = 3560
fate-aac-ltp-encode: FUZZ = 17
...
...
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