Menu

#401 Fprintf format string is not safe

2.6.6
closed
None
5
2016-11-03
2016-08-20
Gert Wollny
No

Reported when compining with -Wformat-error. The patch below fixes this.

--- a/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEG2000Codec.cxx
@@ -302,7 +302,7 @@
   else
 #endif
 {

-    fprintf( stderr, msg );
+    fprintf( stderr, "%s", msg );
   }
 }

Discussion

  • Mathieu Malaterre

    • status: open --> closed
    • assigned_to: Mathieu Malaterre
    • Group: 2.7 --> 2.6.6
     
  • Mathieu Malaterre

    [release 457f802] Fprintf format sting is not safe. Bug #401
    Author: Gert Wollny gw.fossdev@gmail.com
    1 file changed, 1 insertion(+), 1 deletion(-)

     

    Last edit: Mathieu Malaterre 2016-08-22
  • Mathieu Malaterre

    • summary: Fprintf format sting is not save --> Fprintf format string is not safe
     

Log in to post a comment.

MongoDB Logo MongoDB