From fff3be2f290363673d7ead3a1584c0b4af6cafba Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 29 Sep 2024 23:00:00 +0100 Subject: [PATCH] utils/main.c: DefRead() Call to function with fewer arguments than declared parameters Resolution maintains behaviour closest to original behaviour from a37fc1e2 Copilot Autofix no offered. related git blame lef/defRead.c: cfb81101 (2022-03-30 13:02:12 -0400 2388) bool annotate; f7df5e7c (2022-06-24 15:22:53 -0400 2389) bool noblockage; related commits: commit cfb81101ecae618ea111ede4319d2b7516dc4338 Date: Wed Mar 30 13:02:12 2022 -0400 commit f7df5e7c86fb47c5fd445c846afddc6fbabad6ae (tag: 8.3.315) Date: Fri Jun 24 15:22:53 2022 -0400 commit a37fc1e242be934891b26a2ced211caebbca746d Date: Thu Mar 5 14:29:54 2020 -0500 CodeQL: https://github.com/dlmiles/magic/security/code-scanning/29 --- utils/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/main.c b/utils/main.c index ecfca76f..8865e65b 100644 --- a/utils/main.c +++ b/utils/main.c @@ -1191,7 +1191,7 @@ mainInitFinal() LefRead(temporary->fn, FALSE, FALSE, -1); break; case FN_DEF_FILE: - DefRead(temporary->fn, FALSE); + DefRead(temporary->fn, FALSE, FALSE, FALSE); break; #endif #ifdef MAGIC_WRAPPER