Re: [LOW] STR #3529: Fix compiler warnings

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [LOW] STR #3529: Fix compiler warnings Albrecht Schlosser Aug 29, 2019 top right image
 
[STR Closed w/Resolution]

Link: https://www.fltk.org/str.php?L3529
Version: 1.4-current
Fix Version: 1.4.0
Git Commit: cb387bd6ff0489bc1be8896ab7d90e17750874e3


Fixed in Git repository.

Remaining compiler warnings are now fixed in commit cb387bd6f.

Note: The solution of potential format (buffer) overflows was to increase
buffer (variable) sizes.

I'm aware that some of the resultant buffers could theoretically contain
filename strings longer than FL_PATH_MAX [1] which would likely result in
errors opening such files. This seems to be better than buffer overflows
though.

----

[1] The typical case is to concatenate a directory string and a filename.
Since both variables are of size FL_PATH_MAX the resultant string could be
longer than FL_PATH_MAX which should not happen in reality.


Link: https://www.fltk.org/str.php?L3529
Version: 1.4-current
Fix Version: 1.4.0
Git Commit: cb387bd6ff0489bc1be8896ab7d90e17750874e3


Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.