# HG changeset patch
# User Min Chen <[email protected]>
# 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])

_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to