nixpkgs/pkgs/applications/science/electronics/magic-vlsi/0002-fix-format-security.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
491 B
Diff
Raw Normal View History

2020-04-27 07:13:59 +00:00
diff --git a/database/DBio.c b/database/DBio.c
index 93c4b0b..292ea5f 100644
--- a/database/DBio.c
+++ b/database/DBio.c
@@ -2378,12 +2378,12 @@ DBCellWriteFile(cellDef, f)
#define FPRINTF(f,s)\
{\
- if (fprintf(f,s) == EOF) goto ioerror;\
+ if (fprintf(f,"%s",s) == EOF) goto ioerror;\
DBFileOffset += strlen(s);\
}
#define FPRINTR(f,s)\
{\
- if (fprintf(f,s) == EOF) return 1;\
+ if (fprintf(f,"%s",s) == EOF) return 1;\
DBFileOffset += strlen(s);\
}