mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-25 05:51:15 +00:00
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:
parent
45d826d31c
commit
db977e6f75
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue