From 4a3f2def7ac0dee4cfe3021c46f2883528be13d1 Mon Sep 17 00:00:00 2001 From: wxc Date: Tue, 24 Feb 2026 21:13:45 +0800 Subject: [PATCH] =?UTF-8?q?CVE=E6=BC=8F=E6=B4=9E=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wxc --- BUILD.gn | 1 + tools/tiffcrop.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 764efd4c..bd419b87 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -195,4 +195,5 @@ ohos_shared_library("libtiff") { output_extension = "so" install_images = [ "system" ] ldflags = [ "-Wl,-Map=libtiff.map" ] + } \ No newline at end of file diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index 54b86da8..a124af79 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -2907,8 +2907,9 @@ int main(int argc, char *argv[]) } /* If we did not use the read buffer as the crop buffer */ - if (read_buff && read_buff != crop_buff) + if (read_buff && read_buff != crop_buff) { _TIFFfree(read_buff); + } if (crop_buff) _TIFFfree(crop_buff);