From 84bb191dcbb61968648442bf1a666335a339cc87 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Wed, 3 Jan 2018 08:36:58 +1030 Subject: [PATCH 2/2] Fix EmbedStream replay Bug #103446 --- poppler/Stream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/Stream.cc b/poppler/Stream.cc index 2dbd6c82..dcb67a4d 100644 --- a/poppler/Stream.cc +++ b/poppler/Stream.cc @@ -1137,7 +1137,7 @@ int EmbedStream::getChars(int nChars, Guchar *buffer) { len = bufLen - bufPos; if (nChars > len) nChars = len; - memcpy(buffer, bufData, len); + memcpy(buffer, bufData, nChars); return len; } else { if (limited && length < nChars) { -- 2.11.0