-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of bound array access in twolame_bits_for_nonoise() #96
base: main
Are you sure you want to change the base?
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.