[vlc-devel] commit: Fix format string ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Aug 13 20:45:23 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Aug 13 21:47:28 2008 +0300| [e2a350d5486c0810410611635bfef01a0d7bef8e] | committer: Rémi Denis-Courmont 

Fix format string

(I don't know if this is exploitable - depends what libpng does)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2a350d5486c0810410611635bfef01a0d7bef8e
---

 modules/codec/png.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 2b04b96..6cc2a2f 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -106,13 +106,13 @@ static void user_error( png_structp p_png, png_const_charp error_msg )
 {
     decoder_t *p_dec = (decoder_t *)png_get_error_ptr( p_png );
     p_dec->p_sys->b_error = true;
-    msg_Err( p_dec, error_msg );
+    msg_Err( p_dec, "%s", error_msg );
 }
 
 static void user_warning( png_structp p_png, png_const_charp warning_msg )
 {
     decoder_t *p_dec = (decoder_t *)png_get_error_ptr( p_png );
-    msg_Warn( p_dec, warning_msg );
+    msg_Warn( p_dec, "%s", warning_msg );
 }
 
 /****************************************************************************




More information about the vlc-devel mailing list