LibRaw/fix-use-of-uninitialized-value-in-makernotes.patch
cherry530 25758ddd60 fix use of uninitialized value of makernotes.cpp and misc_parsers.cpp
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit c00f3c5de508e12205a25899c64930b45b137dcb)
2022-02-25 18:13:55 +08:00

13 lines
384 B
Diff

diff --git a/src/metadata/makernotes.cpp b/src/metadata/makernotes.cpp
index 9433abd..7ae80f5 100644
--- a/src/metadata/makernotes.cpp
+++ b/src/metadata/makernotes.cpp
@@ -396,6 +396,7 @@ void LibRaw::parse_makernote(int base, int uptag)
is_Sony = 1;
}
+ memset(buf, '0', 10);
fread(buf, 1, 10, ifp);
if (!strncmp(buf, "KDK", 3) || /* these aren't TIFF tables */