Explorar o código

* fixed bug in xsdTryParseBoolean (segfault on null string)

git-svn-id: trunk@14215 -
ivost %!s(int64=16) %!d(string=hai) anos
pai
achega
6941020524
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);