2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Merge pull request #1265 from m-holger/fuzz

If Pl_Flate memory limit is exceeded do not attempt 'finish' processing
This commit is contained in:
m-holger 2024-08-10 00:11:33 +01:00 committed by GitHub
commit ac42965052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,6 +204,9 @@ Pl_Flate::handleData(unsigned char const* data, size_t len, int flush)
void
Pl_Flate::finish()
{
if (m->written > memory_limit) {
return;
}
try {
if (m->outbuf.get()) {
if (m->initialized) {