[x265] [PATCH 1 of 2] fix bug in testbench that string buffer overflow

Min Chen chenm003 at 163.com
Fri Nov 22 12:36:40 CET 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1385120050 -28800
# Node ID ca8b260da44fff16e29a65653618ffc94123c8cc
# Parent  5009254d3d3ac92e90b1551444c5eb32ba2f8d31
fix bug in testbench that string buffer overflow

diff -r 5009254d3d3a -r ca8b260da44f source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Fri Nov 22 00:17:46 2013 -0600
+++ b/source/test/pixelharness.cpp	Fri Nov 22 19:34:10 2013 +0800
@@ -967,7 +967,7 @@
 {
     ALIGN_VAR_16(int, cres[16]);
     pixel *fref = pbuf2 + 2 * INCR;
-    char header[20];
+    char header[128];
 #define HEADER(str, ...) sprintf(header, str, __VA_ARGS__); printf("%22s", header);
 
     if (opt.satd[part])



More information about the x265-devel mailing list