lefRead.c: LefError() add ASSERT(type) for incorrect caller usage
'type' maybe used as array index without being initialized. Sonarcloud Array subscript is undefined https://sonarcloud.io/project/issues?open=AZJB17LDNGfDNup0Rjyn&id=dlmiles_magic
This commit is contained in:
parent
86b5d591d6
commit
ee9d4df081
|
|
@ -349,6 +349,10 @@ LefError(int type, char *fmt, ...)
|
|||
mode = 1;
|
||||
level = -1;
|
||||
break;
|
||||
default:
|
||||
ASSERT(FALSE, "type");
|
||||
return;
|
||||
break;
|
||||
}
|
||||
lefdeftype = lefdeftypes[mode];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue