From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | dbmirror had sprintf string too short |
Date: | 2002-11-26 03:09:41 |
Message-ID: | 200211260309.gAQ39fX17601@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-11-26 03:30:23 | Re: performance of insert/delete/update |
Previous Message | Merlin Moncure | 2002-11-26 03:00:26 | possible obvious bug? |