summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2022-11-22 09:59:04 +0900
committerjiyong.min <jiyong.min@samsung.com>2022-11-23 16:28:06 +0900
commit88090ca615e05574d9d0410d720ec5f79959ae0b (patch)
tree25819bdb5c7f5a46f65a76bc9ba6b07029eded50
parentdec815dcc39866ecde5a62d5d2ba629ab5d8f97c (diff)
downloadlibheif-88090ca615e05574d9d0410d720ec5f79959ae0b.tar.gz
libheif-88090ca615e05574d9d0410d720ec5f79959ae0b.tar.bz2
libheif-88090ca615e05574d9d0410d720ec5f79959ae0b.zip
Bug fix: Fix potential double-freeaccepted/tizen/unified/20221128.014945
- If an error occurred on 517 line after 'tile_image' is released on line 537, double-free may occur. Change-Id: I1bfe863caaa06ffb3560960238e7aac39c71475e
-rw-r--r--packaging/libheif.spec2
-rw-r--r--src/heif_decoder.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/packaging/libheif.spec b/packaging/libheif.spec
index c9c1991..4e1786d 100644
--- a/packaging/libheif.spec
+++ b/packaging/libheif.spec
@@ -1,6 +1,6 @@
Name: libheif
Summary: Multimedia Framework Library for HEIF(ISO/IEC 23008-12) image
-Version: 0.0.8
+Version: 0.0.9
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
diff --git a/src/heif_decoder.c b/src/heif_decoder.c
index 4eadb40..912d48a 100644
--- a/src/heif_decoder.c
+++ b/src/heif_decoder.c
@@ -535,6 +535,7 @@ static int __decode_grid_image(heif_itemtable_h item_table, heif_color_format_e
pos_x = 0;
}
heif_decoder_destroy_image(tile_image);
+ tile_image = NULL;
if (ret != LIBHEIF_ERROR_NONE) {
heif_error("__combine_tile_image fail (%d)", ret);