matrix_4x4_multiply - add early return to prevent null

pointer dereferences
This commit is contained in:
twinaphex 2016-09-07 00:57:05 +02:00
parent 270593990b
commit 2080301088

View File

@ -186,6 +186,9 @@ void matrix_4x4_multiply(
unsigned r, c, k;
math_matrix_4x4 mat;
if (!out || !a || !b)
return;
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4; c++)