mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
matrix_4x4_multiply - add early return to prevent null
pointer dereferences
This commit is contained in:
parent
270593990b
commit
2080301088
@ -186,6 +186,9 @@ void matrix_4x4_multiply(
|
|||||||
unsigned r, c, k;
|
unsigned r, c, k;
|
||||||
math_matrix_4x4 mat;
|
math_matrix_4x4 mat;
|
||||||
|
|
||||||
|
if (!out || !a || !b)
|
||||||
|
return;
|
||||||
|
|
||||||
for (r = 0; r < 4; r++)
|
for (r = 0; r < 4; r++)
|
||||||
{
|
{
|
||||||
for (c = 0; c < 4; c++)
|
for (c = 0; c < 4; c++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user