summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2018-01-11 09:49:58 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2018-01-19 13:52:25 +0000
commit31397fa866cfd7207966ab607db974d92727ae43 (patch)
tree01a9bdbd77af85eb047c369e149030c83b866d24 /source
parent660d5b95cd1982e0c3456a754cea569dc342d6f7 (diff)
downloadmupdf-31397fa866cfd7207966ab607db974d92727ae43.tar.xz
Fix potential infinite loop when verifying signatures
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-pkcs7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c
index 2db1b4f2..6ec8aaf2 100644
--- a/source/pdf/pdf-pkcs7.c
+++ b/source/pdf/pdf-pkcs7.c
@@ -201,7 +201,7 @@ static int bsegs_read(BIO *b, char *buf, int size)
}
nb = BIO_read(BIO_next(b), buf, nb);
- if (nb < 0)
+ if (nb <= 0)
return read;
ctx->seg_pos += nb;