소스 검색

* TXMLConfig.ResetKey: Don't access memory beyond allocated array length, resolves #20098.

git-svn-id: trunk@18913 -
sergei 14 년 전
부모
커밋
3ad7552fc4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-xml/src/xmlconf.pp

+ 1 - 1
packages/fcl-xml/src/xmlconf.pp

@@ -431,7 +431,7 @@ procedure TXMLConfig.ResetKey;
 var
   I: Integer;
 begin
-  for I := Length(FPathStack) downto 0 do
+  for I := Length(FPathStack)-1 downto 0 do
     FPathStack[I] := '';
   FElement := nil;    
   FPathDirty := False;