Browse Source

+ check record type in TOmfRecord_COMENT.DecodeFrom

git-svn-id: trunk@30511 -
nickysn 10 years ago
parent
commit
fb234e2149
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/omfbase.pas

+ 2 - 0
compiler/omfbase.pas

@@ -656,6 +656,8 @@ implementation
 
   procedure TOmfRecord_COMENT.DecodeFrom(RawRecord: TOmfRawRecord);
     begin
+      if RawRecord.RecordType<>RT_COMENT then
+        internalerror(2015040301);
       if RawRecord.RecordLength<3 then
         internalerror(2015033104);
       CommentType:=RawRecord.RawData[0];