mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-08 06:15:23 +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
|
void
|
||||||
Pl_Flate::finish()
|
Pl_Flate::finish()
|
||||||
{
|
{
|
||||||
|
if (m->written > memory_limit) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (m->outbuf.get()) {
|
if (m->outbuf.get()) {
|
||||||
if (m->initialized) {
|
if (m->initialized) {
|
||||||
|
Loading…
Reference in New Issue
Block a user