Out of bound array access in twolame_bits_for_nonoise()#96
Out of bound array access in twolame_bits_for_nonoise()#96svart-riddare wants to merge 1 commit intonjh:mainfrom
Conversation
|
@svart-riddare Could you post the ASAN output please? |
|
Here is the (truncated, I have not included application stack traces) ASAN output : With the debugger we then found that the code was sometimes reading array |
|
Both table number and sblimit are selected in order to get meaningful values between 0 and 8 (look at the contents of array 'line'). Values -1 always lie beyond the sblimit bound. |
|
Eighteen months lather, I'll see if I have around the original material that shows the issue. I remember though that it was related to the encoding mode |
The problem was seen by running an ASAN (address sanitizer) build. Not exactly sure about the fix.