Assert non-overlapping memcpy. r=mark4o
Coverity warns about the possibly-overlappying memcpy in this block, presumedly because it can't prove predictLPCOrder <= MAX_LPC_ORDER here. Add an assert to make the intent clear in code as well as in the comment.
This commit is contained in:
parent
9203565fa8
commit
c3563be66f
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ void silk_process_NLSFs(
|
|||
|
||||
} else {
|
||||
/* Copy LPC coefficients for first half from second half */
|
||||
silk_assert( psEncC->predictLPCOrder <= MAX_LPC_ORDER );
|
||||
silk_memcpy( PredCoef_Q12[ 0 ], PredCoef_Q12[ 1 ], psEncC->predictLPCOrder * sizeof( opus_int16 ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue