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-10-04 20:29:15 +01:00 committed by Tim Edwards
parent 86b5d591d6
commit ee9d4df081
1 changed files with 4 additions and 0 deletions

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];