mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 20:49:22 +02:00
* fixed bug in xsdTryParseBoolean (segfault on null string)
git-svn-id: trunk@14215 -
This commit is contained in:
parent
671f8a1d30
commit
6941020524
@ -882,6 +882,9 @@ var
|
|||||||
P: PChar;
|
P: PChar;
|
||||||
Num: QWord;
|
Num: QWord;
|
||||||
begin
|
begin
|
||||||
|
if not Assigned(Chars) then
|
||||||
|
Exit(False);
|
||||||
|
|
||||||
if Len < 0 then
|
if Len < 0 then
|
||||||
begin
|
begin
|
||||||
P := PChar(Chars);
|
P := PChar(Chars);
|
||||||
|
Loading…
Reference in New Issue
Block a user