Browse Source

* Fix range check error (len=0)

Michaël Van Canneyt 5 months ago
parent
commit
16d8d46691
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/cresstr.pas

+ 2 - 1
compiler/cresstr.pas

@@ -93,7 +93,8 @@ uses
           begin
           Len:=asym.value.len;
           SetLength(AValue,Len);
-          Move(asym.value.valueptr^,AValue[0],Len);
+          if len>0 then
+            Move(asym.value.valueptr^,AValue[0],Len);
           end;
         CalcHash;
       end;