mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +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:
commit
ac42965052
@ -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