matfile_listvar() and loadmatfile() crash Scilab when the file contains some structure saved in version < 7.3
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
matfile_listvar() and loadmatfile() crash Scilab when the file contains a structure:
File = TMPDIR+"/tmp.mat";
clear produit
produit = struct("type","logiciel","age",30);
savematfile(File,"produit")
clear produit
loadmatfile(File) // => CRASH
//Same thing with matfile_listvar():
clear produit
produit = struct("type","logiciel","age",30);
fd = matfile_open(File, "File");
[names, classes, types] = matfile_listvar(fd); // => CRASH
ERROR LOG:
----------
Crash
HOW TO REPRODUCE THE BUG:
-------------------------
See above
OTHER INFORMATION:
------------------
* There is no crash (until now) for other supported datatypes, even cells arrays.
* Some other structures can sometimes be read without crash