mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
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:
committed by
Tim Edwards
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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user