[vlc-commits] png: fix variable clobber due to long jump

Rémi Denis-Courmont git at videolan.org
Tue Nov 3 21:49:22 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  3 22:47:08 2015 +0200| [adec20c8d909103e621a04c004027856329eda18] | committer: Rémi Denis-Courmont

png: fix variable clobber due to long jump

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

 modules/codec/png.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 36ed444..06ff9a2 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -198,7 +198,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
 
     png_structp p_png;
     png_infop p_info, p_end_info;
-    png_bytep *p_row_pointers = NULL;
+    png_bytep *volatile p_row_pointers = NULL;
 
     if( !pp_block || !*pp_block ) return NULL;
 



More information about the vlc-commits mailing list