diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-04 10:55:45 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-10-04 10:55:45 +0200 |
commit | 44e3fb767feaad3eee464d7d8ae16ce708ec974c (patch) | |
tree | c6ca3b5773035384b56c1ccfa02ced4d64e21ac3 /svtools/bmpmaker | |
parent | security issue: using an un-sanitized string as format of a fprintf (diff) | |
download | core-44e3fb767feaad3eee464d7d8ae16ce708ec974c.tar.gz core-44e3fb767feaad3eee464d7d8ae16ce708ec974c.zip |
printf without format considered harmful
svtools/bmpmaker/bmp.cxx | 2 +-
svtools/bmpmaker/bmpsum.cxx | 2 +-
svtools/bmpmaker/g2g.cxx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
basic/source/app/msgedit.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Diffstat (limited to 'svtools/bmpmaker')
-rw-r--r-- | svtools/bmpmaker/bmp.cxx | 2 | ||||
-rw-r--r-- | svtools/bmpmaker/bmpsum.cxx | 2 | ||||
-rw-r--r-- | svtools/bmpmaker/g2g.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/bmpmaker/bmp.cxx b/svtools/bmpmaker/bmp.cxx index 5b473b0289c2..110ec0b83285 100644 --- a/svtools/bmpmaker/bmp.cxx +++ b/svtools/bmpmaker/bmp.cxx @@ -161,7 +161,7 @@ void BmpApp::Message( const String& rText, BYTE cExit ) ByteString aText( rText, RTL_TEXTENCODING_UTF8 ); aText.Append( "\r\n" ); - fprintf( stderr, aText.GetBuffer() ); + fprintf( stderr, "%s", aText.GetBuffer() ); } // ----------------------------------------------------------------------------- diff --git a/svtools/bmpmaker/bmpsum.cxx b/svtools/bmpmaker/bmpsum.cxx index 7c264e694a12..3c8a5f6d8414 100644 --- a/svtools/bmpmaker/bmpsum.cxx +++ b/svtools/bmpmaker/bmpsum.cxx @@ -167,7 +167,7 @@ void BmpSum::Message( const String& rText, BYTE nExitCode ) ByteString aText( rText, RTL_TEXTENCODING_UTF8 ); aText.Append( "\r\n" ); - fprintf( stderr, aText.GetBuffer() ); + fprintf( stderr, "%s", aText.GetBuffer() ); } // ----------------------------------------------------------------------------- diff --git a/svtools/bmpmaker/g2g.cxx b/svtools/bmpmaker/g2g.cxx index 6f4ee0f86279..0bd126b2812d 100644 --- a/svtools/bmpmaker/g2g.cxx +++ b/svtools/bmpmaker/g2g.cxx @@ -125,7 +125,7 @@ void G2GApp::Message( const String& rText, BYTE nExitCode ) ByteString aText( rText, RTL_TEXTENCODING_UTF8 ); aText.Append( "\r\n" ); - fprintf( stderr, aText.GetBuffer() ); + fprintf( stderr, "%s", aText.GetBuffer() ); } // ----------------------------------------------------------------------------- |