changeset 19185:8bed40e02c3b stable

pathencode: grow buffers to increase safety margin
author Matt Mackall <mpm@selenic.com>
date Fri, 10 May 2013 11:23:50 -0500
parents 9d88916fb56f
children 012be6c12ad8
files mercurial/pathencode.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pathencode.c	Sun May 12 10:09:34 2013 +0100
+++ b/mercurial/pathencode.c	Fri May 10 11:23:50 2013 -0500
@@ -696,7 +696,7 @@
 	return 0;
 }
 
-#define MAXENCODE 4096 * 3
+#define MAXENCODE 4096 * 4
 
 static PyObject *hashencode(const char *src, Py_ssize_t len)
 {