Kaydet (Commit) 425572b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: ReadBlock has to be HWPIDLen to be useful

Change-Id: Iaa349921972bb19b40bf68c6a3b0c7128cff4b8d
üst 6f3e24ad
......@@ -126,7 +126,7 @@ int HWPFile::Open(HStream * stream)
char idstr[HWPIDLen];
if (ReadBlock(idstr, HWPIDLen) <= 0
if (ReadBlock(idstr, HWPIDLen) < HWPIDLen
|| HWP_V30 != (version = detect_hwp_version(idstr)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment