diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-04-12 14:09:55 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-04-12 18:38:41 +0100 |
commit | e1134d375e2ca176068e19a2aa9b040baffe1c22 (patch) | |
tree | 2e45c3b6484f823e094a8c8ef2f4582fa39f067d /pcl | |
parent | d044176a8e9119c4e2b8d30c65811eb0facd9560 (diff) | |
download | ghostpdl-e1134d375e2ca176068e19a2aa9b040baffe1c22.tar.gz |
Bug 705156(1): Avoid double free of PCL error buffer
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/pcl/pcstatus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pcl/pcl/pcstatus.c b/pcl/pcl/pcstatus.c index 0bc9ba345..4413e9013 100644 --- a/pcl/pcl/pcstatus.c +++ b/pcl/pcl/pcstatus.c @@ -52,6 +52,7 @@ pcl_status_read(byte * data, uint max_data, pcl_state_t * pcs) pcs->status.read_pos += count; if (pcs->status.read_pos == pcs->status.write_pos) { gs_free_object(pcs->memory, pcs->status.buffer, "status buffer"); + pcs->status.buffer = NULL; pcs->status.write_pos = pcs->status.read_pos = 0; } return count; |