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:
Darryl L. Miles
2024-12-26 13:01:24 -05:00
committed by Tim Edwards
parent 86b5d591d6
commit ee9d4df081
+4
View File
@@ -349,6 +349,10 @@ LefError(int type, char *fmt, ...)
mode = 1;
level = -1;
break;
default:
ASSERT(FALSE, "type");
return;
break;
}
lefdeftype = lefdeftypes[mode];