#1 2018-02-21 12:30:51

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Little nil Pointer BUG in SynCommons

Hi Arnaud, we got a 0xc000005 in ExistsIniName, cause P was nil (Empty String assigned to PChar)

SynCommons - Line 29306ff

function ExistsIniName(P: PUTF8Char; UpperName: PAnsiChar): boolean;
var table: PNormTable;
begin
  result := false;
  table := @NormToUpperAnsi7;
  if (P <> nil) and (P^<>'[') then    // <<-- Add this pls
    repeat
      if P^=' ' then begin
        repeat inc(P) until P^<>' '; // trim left ' '
        if P^=#0 then
          break;

can you pls add this to repository - Many Thx


Rad Studio 12.1 Santorini

Offline

#2 2018-02-21 12:44:57

mingda
Member
Registered: 2013-01-04
Posts: 121

Re: Little nil Pointer BUG in SynCommons

Offline

Board footer

Powered by FluxBB