diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2018-01-11 09:49:58 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2018-01-19 13:52:25 +0000 |
commit | 31397fa866cfd7207966ab607db974d92727ae43 (patch) | |
tree | 01a9bdbd77af85eb047c369e149030c83b866d24 /source/pdf/pdf-pkcs7.c | |
parent | 660d5b95cd1982e0c3456a754cea569dc342d6f7 (diff) | |
download | mupdf-31397fa866cfd7207966ab607db974d92727ae43.tar.xz |
Fix potential infinite loop when verifying signatures
Diffstat (limited to 'source/pdf/pdf-pkcs7.c')
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 2 |
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; |