Sfoglia il codice sorgente

* fixed bug in xsdTryParseBoolean (segfault on null string)

git-svn-id: trunk@14215 -
ivost 16 anni fa
parent
commit
6941020524
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      packages/libxml/src/xmlxsd.pas

+ 3 - 0
packages/libxml/src/xmlxsd.pas

@@ -882,6 +882,9 @@ var
   P: PChar;
   Num: QWord;
 begin
+  if not Assigned(Chars) then
+    Exit(False);
+
   if Len < 0 then
   begin
     P := PChar(Chars);