Commit 71ea2681 authored by Ronald S. Bultje's avatar Ronald S. Bultje

aacsbr: handle m_max values smaller than 4.

Prevents a signflip in the counter, and a subsequent crash because of
overreads/overwrites.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
parent 73ad4471
...@@ -81,6 +81,7 @@ cglobal sbr_hf_g_filt, 5, 6, 5 ...@@ -81,6 +81,7 @@ cglobal sbr_hf_g_filt, 5, 6, 5
lea r2, [r2 + r3*4] lea r2, [r2 + r3*4]
lea r0, [r0 + r3*8] lea r0, [r0 + r3*8]
neg r3 neg r3
jz .loop1
.loop4: .loop4:
movlps m0, [r2 + 4*r3 + 0] movlps m0, [r2 + 4*r3 + 0]
movlps m1, [r2 + 4*r3 + 8] movlps m1, [r2 + 4*r3 + 8]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment