Hello,
I can't test this patch since this part of code is for Windows but i
think it's a true positive
Is this ok or am I wrong ?
diff --git a/hwpfilter/source/htags.cpp b/hwpfilter/source/htags.cpp
index 8235bf0..dd57638 100644
--- a/hwpfilter/source/htags.cpp
+++ b/hwpfilter/source/htags.cpp
@@ -146,8 +146,10 @@ bool OlePicture::Read(HWPFile & hwpf)
char tname[200];
wchar_t wtname[200];
tmpnam(tname);
- if (0 == (fp = fopen(tname, "wb")))
+ if (0 == (fp = fopen(tname, "wb"))) {
+ delete [] data;
return false;
+ }
fwrite(data, size, 1, fp);
fclose(fp);
MultiByteToWideChar(CP_ACP, 0, tname, -1, wtname, 200);
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice