]> granicus.if.org Git - handbrake/commitdiff
libhb: fix potential seg fault in hb_hexdump
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 30 Jul 2014 22:06:08 +0000 (22:06 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 30 Jul 2014 22:06:08 +0000 (22:06 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6246 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/common.c

index 7c4a97eca64ce6134732842469cd10871c74f277..7015ae17ac16d104036840e77b3ebaf5c50d4d48 100644 (file)
@@ -4363,7 +4363,6 @@ void hb_hexdump( hb_debug_level_t level, const char * label, const uint8_t * dat
         else
             ascii[(ii & 0x0f) + 1] = '.';
     }
-    ascii[ii] = 0;
     if( p != line )
     {
         hb_deep_log( level, "    %-50s%20s", line, ascii );