From 7feec6358093b615a0e53e890ffbe30d2f2ed772 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 29 Sep 2024 23:00:00 +0100 Subject: [PATCH] cif/CIFgen.c: CmdFindNetProc() Call to function with fewer arguments than declared parameters The 'isvalid' pointer argument to CmdFindNetProc() is for an optional return value, so must be NULL when feature is not used. Copilot Autofix rejected: ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE, additional_arg1, additional_arg2); commands/CmdFI.c cfb81101 (2022-03-30 13:02:12 -0400 1584) bool *isvalid; commit f89d52dbcc6f21eafff2479d94a44e944bd0b767 (tag: 8.3.253) Date: Thu Jan 6 13:29:43 2022 -0500 CodeQL: https://github.com/dlmiles/magic/security/code-scanning/7 --- cif/CIFgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cif/CIFgen.c b/cif/CIFgen.c index 1591088c..0d9e04b3 100644 --- a/cif/CIFgen.c +++ b/cif/CIFgen.c @@ -4896,7 +4896,7 @@ CIFGenLayer(op, area, cellDef, origDef, temps, hier, clientdata) } netname = (char *)op->co_client; cifPlane = curPlane; - ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE); + ttype = CmdFindNetProc(netname, CIFDummyUse, &bbox, FALSE, NULL); if (ttype != TT_SPACE) { UndoDisable();