Element-wise Division of a uint8 matrix by a double matrix results in a segfault
Reported by Antoine Monmayrant
BUG DESCRIPTION:
----------------
Element-wise Division of a uint8 matrix by a double matrix results in a segfault.
Tested on both scilab-master-1534776009 and scilab-branch-6.0-1534494461.
The segfault does not occurs with scilab 5.5.2 but a division-by-zero error is raised whereas there is no division by zero!
ERROR LOG:
----------
Segmentation fault (core dumped)
HOW TO REPRODUCE THE BUG:
-------------------------
a=uint8(rand(2,2)*255);
b=rand(2,2);
//let's be sure not to divide by 0
while or(b==0)
b=rand(2,2);
end
//adios amigo: Segmentation fault (core dumped)
a./b
OTHER INFORMATION:
------------------
Tested under linux 64bits (Ubuntu 16.04)