diff --git a/MsBinaryFile/DocFile/BookmarkFirst.cpp b/MsBinaryFile/DocFile/BookmarkFirst.cpp index 87a232b99a..0141e72050 100644 --- a/MsBinaryFile/DocFile/BookmarkFirst.cpp +++ b/MsBinaryFile/DocFile/BookmarkFirst.cpp @@ -62,7 +62,10 @@ namespace DocFileFormat { ProtInfoBookmark *newObject = new ProtInfoBookmark(); - newObject->id = reader->ReadUInt32(); + if (length > 8) + { + newObject->id = reader->ReadUInt32(); + } newObject->uidSel = reader->ReadUInt16(); newObject->iProt = reader->ReadUInt16();