mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
CodeQL MissingNegativtyTest.ql ttype>=0 ResSimSubckt()
This variable is used as array index, but the extGetDevType() API allows a negative return to occur.
This commit is contained in:
committed by
Tim Edwards
parent
ad1d9923f9
commit
ca9229b35a
@@ -426,6 +426,7 @@ ResSimSubckt(line)
|
||||
return 1;
|
||||
}
|
||||
ttype = extGetDevType(EFDevTypes[j]);
|
||||
ASSERT(ttype >= 0, "ttype<0");
|
||||
|
||||
/* Find the device record that corresponds to the device name */
|
||||
for (devptr = ExtCurStyle->exts_device[ttype]; devptr; devptr = devptr->exts_next)
|
||||
|
||||
Reference in New Issue
Block a user