From c211a921a605df79b7d176dbcc35d6c22fc87cdf Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 7 Nov 2014 04:46:56 +0100 Subject: [PATCH] fix possible AV when scanning asteriskified path --- src/ce_common.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ce_common.pas b/src/ce_common.pas index 5b999994..7825c03e 100644 --- a/src/ce_common.pas +++ b/src/ce_common.pas @@ -578,6 +578,10 @@ var pth, ext, fname: string; files: TStringList; begin + result := false; + if aPath = '' then + exit; + // if aPath[length(aPath)] = '*' then begin pth := aPath[1..length(aPath)-1];