From 32603d7efff48bf58937392b194d286c7c854fbd Mon Sep 17 00:00:00 2001 From: Etienne Cimon Date: Thu, 14 May 2015 10:45:17 -0400 Subject: [PATCH] Access violation in buffers When adding a large amount of data that spans to multiple chunks, the pointer is incremented by the wrong value. --- lib/nghttp2_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_buf.c b/lib/nghttp2_buf.c index 0941f78b..96454a89 100644 --- a/lib/nghttp2_buf.c +++ b/lib/nghttp2_buf.c @@ -320,7 +320,7 @@ int nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) { } buf->last = nghttp2_cpymem(buf->last, p, nwrite); - p += len; + p += nwrite; len -= nwrite; }