isl_mat_left_hermite: avoid undefined null pointer arithmetic
commitb624529832b72f5c9eb43ffffd61160c15b04dfb
authorMichael Kruse <isl@meinersbur.de>
Sat, 19 Dec 2020 01:33:26 +0000 (18 19:33 -0600)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 19 Dec 2020 16:41:02 +0000 (19 17:41 +0100)
tree90419835d424abfb4360847ec0e20a6f6e4699e2
parent44080b35a8db55519423fc28081009fef2198e7f
isl_mat_left_hermite: avoid undefined null pointer arithmetic

Technically, arithmetic on null pointers is undefined behavior,
even if only adding zero.  This may happen inside
isl_mat_left_hermite if the number of columns is zero.
Simply skip the entire computation in that case.

Signed-off-by: Michael Kruse <isl@meinersbur.de>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_mat.c