21 lines
571 B
Diff
21 lines
571 B
Diff
diff --git a/src/metadata/sony.cpp b/src/metadata/sony.cpp
|
|
index 120340b..2e8dd49 100644
|
|
--- a/src/metadata/sony.cpp
|
|
+++ b/src/metadata/sony.cpp
|
|
@@ -1071,6 +1071,7 @@ void LibRaw::parseSonyMakernotes(
|
|
(len >= 196))
|
|
{
|
|
table_buf = (uchar *)malloc(len);
|
|
+ memset(table_buf,0,len);
|
|
fread(table_buf, len, 1, ifp);
|
|
|
|
lid = 0x01 << 2;
|
|
@@ -1106,6 +1107,7 @@ void LibRaw::parseSonyMakernotes(
|
|
(len >= 227))
|
|
{
|
|
table_buf = (uchar *)malloc(len);
|
|
+ memset(table_buf,0,len);
|
|
fread(table_buf, len, 1, ifp);
|
|
|
|
lid = 0x0;
|