LazReport: Check the length of a string before accessing its members. Issue #28896, patch from Tony Whyman.

git-svn-id: trunk@50162 -
This commit is contained in:
juha 2015-10-25 09:22:43 +00:00
parent 105b3e0652
commit dd99e47f84

View File

@ -128,7 +128,7 @@ end;
procedure RemoveQuotes(var s: String);
begin
if (s[1] = '"') and (s[Length(s)] = '"') then
if (Length(s) > 1) and (s[1] = '"') and (s[Length(s)] = '"') then
s := Copy(s, 2, Length(s) - 2);
end;