diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2021-08-24 08:05:34 -0700 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2021-08-24 08:08:49 -0700 |
commit | cde8a4e65266b96d2abd0f45203d75cd1563f554 (patch) | |
tree | 15671e7c2d461064107098ace3edd514728d39cf /contrib | |
parent | 6dd5ccb0372730fd61086dad6fa226f880958227 (diff) | |
download | ghostpdl-cde8a4e65266b96d2abd0f45203d75cd1563f554.tar.gz |
Fix bug 704242. Potential memory leak in pcl3opts.c
Thanks to the bug submitter for noticing it and this patch.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pcl3/src/pcl3opts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pcl3/src/pcl3opts.c b/contrib/pcl3/src/pcl3opts.c index edd28ded2..51e9cce3a 100644 --- a/contrib/pcl3/src/pcl3opts.c +++ b/contrib/pcl3/src/pcl3opts.c @@ -754,6 +754,7 @@ static int action_CRD(gp_file *in, const pcl_Command *cmd, void *i) /* NLS: 30 * for the reliability of the program! */ if (2 + buffer[1]*6 != cmd->i) { emessage(30, "Illegal field length in Configure Raster Data command.\n"); + free(buffer); return -1; } |