magic/graphics
Darryl L. Miles e88dcba1c5 CodeQL File{MayNot,Never}BeClosed.ql file-handle resource leaks
Guided by CodeQL static code analyser.

FileMayNotBeClosed.ql
FileMayNeverBeClosed.ql

The trick with "if(fp != stdout)" is problematic (to analyser) as
technically 'stdout' can be a global pointer that COULD be modified any
time, so it might have changed between the fopen() and fclose() calls so
the close MAY NEVER occurs (which is problem the analyzer can see).

So local state is maintained as a bool which will also clarify to the
compiler see the intention without concern for external stdout
modification.

Some items appear to be out and out leaks when certain commands are use.
2025-02-22 21:02:49 -05:00
..
cairo_new Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
cairo_orig graphics/cairo_orig/grTCairo5.c uninitialized local variable 2024-10-01 12:36:13 -04:00
DEFAULT.glyphs Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
FreeMono.pt3 Remove all the $XXX: YYY$ 2020-05-23 17:00:38 -04:00
FreeSans.pt3 Remove all the $XXX: YYY$ 2020-05-23 17:00:38 -04:00
FreeSerif.pt3 Remove all the $XXX: YYY$ 2020-05-23 17:00:38 -04:00
Makefile Implemented a new configuration variable "dist_prefix" for 2020-01-28 10:40:01 -05:00
README.X10a Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
READ_ME Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
W3Dmain.c Lookup() constify WindGetCommandTable() returns 'const' 2024-12-26 15:20:58 -05:00
X11Helper.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
bw.glyphs Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
color.glyphs Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
glyphs.h Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grCMap.c CodeQL File{MayNot,Never}BeClosed.ql file-handle resource leaks 2025-02-22 21:02:49 -05:00
grClip.c GCC14: warning: missing braces around initializer 2024-10-09 21:12:55 -04:00
grDStyle.c gcc11 -Wall -Wpedantic cleanup 2025-01-06 16:12:11 +00:00
grGlyphs.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grLock.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grMain.c GCC14: warning: missing braces around initializer 2024-10-09 21:12:55 -04:00
grNull.c I discovered that for large designs, running DBWredisplay will take 2021-01-12 12:46:43 -05:00
grOGL1.c grOGL1.c: use ATTR_UNREACHABLE to help analyser 2025-01-03 09:08:14 +00:00
grOGL2.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grOGL3.c grOGL3.c: add GrOGLTextSize() error return 2024-12-26 13:01:24 -05:00
grOGL4.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grOGL5.c graphics: multiple definition of `various_x11_symbols' 2024-10-09 20:35:19 -04:00
grOGLInt.h Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
grTCairo1.c TCL9: Tcl_InitStubs(version="9.0") 2025-01-04 11:08:01 -05:00
grTCairo2.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTCairo3.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTCairo4.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTCairo5.c 38 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
grTCairoInt.h Finished the implementation of Cairo 2D graphics (yay!). 2017-09-14 17:03:53 -04:00
grTOGL1.c TCL9: Tcl_InitStubs(version="9.0") 2025-01-04 11:08:01 -05:00
grTOGL2.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTOGL3.c grTOGL3.c: warning: variable 'font' is used uninitialized 2024-10-09 21:34:12 -04:00
grTOGL4.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTOGL5.c 38 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
grTOGLInt.h Compatibility with C99 standard 2022-10-29 06:07:46 +02:00
grText.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTk1.c TCL9: Tcl_InitStubs(version="9.0") 2025-01-04 11:08:01 -05:00
grTk2.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grTk3.c grTk3.c: warning: variable 'font' is used uninitialized 2024-10-09 21:34:12 -04:00
grTk4.c Corrected a stack corruption error (that I have never seen in 2022-09-27 10:43:04 -04:00
grTk5.c 38 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
grTkCommon.c TCL9: plugin createProc() function signature change ImgLayerCreate() 2025-01-04 11:08:01 -05:00
grTkCommon.h Compatibility with C99 standard 2022-10-29 06:07:46 +02:00
grTkInt.h Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
grX11Int.h Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
grX11su1.c Corrected a syntax error in the old (non-Tcl/Tk) grX11su1.c code 2025-02-15 22:20:50 -05:00
grX11su2.c C99 code compat when configured with no TCL support 2022-10-29 06:07:46 +02:00
grX11su3.c C99 code compat when configured with no TCL support 2022-10-29 06:07:46 +02:00
grX11su4.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grX11su5.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
grX11thread.c C99 code compat when configured with no TCL support 2022-10-29 06:07:46 +02:00
graphics.h Compatibility with C99 standard 2022-10-29 06:07:46 +02:00
graphicsInt.h Define Cairo functions prototypes only when support is enabled 2022-10-29 06:07:46 +02:00
prcolors.c Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
wind3d.h Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00

README.X10a

This driver is a modification of the Stanford X10 driver.  The modifications
were done by Walter Scott and Eric Lunow at Lawrence Livermore National Labs.