mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
If Pl_Flate memory limit is exceeded do not attempt 'finish' processing
This commit is contained in:
parent
0663f1f8db
commit
0eb29c7357
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user