Fix stack overflow in SSE code

This was checking the wrong variable so when count was < 4 it was writing
past the end of buffer and potentially breaking the stack.
This commit is contained in:
Turo Lamminen 2017-03-03 23:15:04 +02:00 committed by Daniel Gibson
parent 3d57e99e0a
commit f26f70c717

View file

@ -489,7 +489,7 @@ void VPCALL idSIMD_SSE::Dot( float *dst, const idVec3 &constant, const idPlane *
/*
jz startVert1
*/
if (count != 0) {
if (count_l4 != 0) {
/*
imul eax, 16
add esi, eax