aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_RC4.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-11-10 23:57:12 +0100
committerJay Berkenbilt <ejb@ql.org>2021-11-11 18:24:15 +0100
commit750aca5b94351f730fa768b07caa3fc26c8d27c0 (patch)
tree2f95b4770973da7f1fb530cb1b5c8dd7e25401e7 /libqpdf/Pl_RC4.cc
parent37916f392568c84570ae0a6afb33a62d8c9e3a10 (diff)
downloadqpdf-750aca5b94351f730fa768b07caa3fc26c8d27c0.tar.zst
First increment of improving handling of weak crypto (fixes #358)
Diffstat (limited to 'libqpdf/Pl_RC4.cc')
-rw-r--r--libqpdf/Pl_RC4.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/Pl_RC4.cc b/libqpdf/Pl_RC4.cc
index 6c8fd3c6..e29551fa 100644
--- a/libqpdf/Pl_RC4.cc
+++ b/libqpdf/Pl_RC4.cc
@@ -34,6 +34,7 @@ Pl_RC4::write(unsigned char* data, size_t len)
size_t bytes =
(bytes_left < this->out_bufsize ? bytes_left : out_bufsize);
bytes_left -= bytes;
+ // lgtm[cpp/weak-cryptographic-algorithm]
rc4.process(p, bytes, outbuf.getPointer());
p += bytes;
getNext()->write(outbuf.getPointer(), bytes);