mirror of
https://github.com/nasa/trick.git
synced 2025-04-11 13:20:05 +00:00
handle garbage values/invalid input MatLab4.cpp
This commit is contained in:
parent
072e1855dd
commit
b65b092e3b
@ -364,6 +364,9 @@ int MatLab4LocateParam( char *file_name , char *param_name , char *time_name ) {
|
||||
case 5:
|
||||
size = 1 ;
|
||||
break ;
|
||||
default :
|
||||
std::cerr << "Matlab4 "__FUNCTION__ << "ERROR: invalid matrix size" << std::endl;
|
||||
size = -1;
|
||||
}
|
||||
|
||||
fread( &row , 4 , 1 , fp ) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user