dbmirror had sprintf string too short - Mailing list pgsql-hackers

From Bruce Momjian
Subject dbmirror had sprintf string too short
Date
Msg-id 200211260309.gAQ39fX17601@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
I have just applied a patch to 7.3 and current CVS to properly allocate
an sprintf string in dbmirror:
       fullyqualtblname = SPI_palloc(strlen(tblname) +                          strlen(schemaname) + 6);
sprintf(fullyqualtblname,"\"%s\".\"%s\"",          schemaname,tblname);
 

Old code had 4 instead of 6.  Tatsuo found this bug.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Postgres Security Expert???
Next
From: "Al Sutton"
Date:
Subject: Re: [mail] Re: Native Win32 sources