Skip site navigation (1) Skip section navigation (2)

Buffer overrun

From: "Maurice Gittens" <mgittens(at)gits(dot)nl>
To: "PostgreSQL-development" <hackers(at)postgreSQL(dot)org>
Subject: Buffer overrun
Date: 1998-03-17 18:41:58
Message-ID: 00df01bd51d4$5e16a1a0$ (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Using the ElectringFence debugging library I found what seems to be a
buffer overrun when creating databases. I don't think I understand it all
well enough
(yet?) to fix it however.

Doing a "create database test;" causes the buffer overrun to appear.
Without the debugging library I notice no malfunction.

In the function createdb a call to the function pg_exec_query which
inserts the info about the new database into pg_database eventually
dies in the function DataFill called from heap_formtuple.

I've noticed that the function pg_exec_query appears twice on the
callstack so I guess this function is reentrant right?

I hope this is useful to somebody.

With regards from Maurice.

pgsql-hackers by date

Next:From: Jeroen van VianenDate: 1998-03-17 18:42:11
Subject: Re: [HACKERS] Some cleanups/enhancements
Previous:From: The Hermit HackerDate: 1998-03-17 18:41:04
Subject: RE: [HACKERS] First mega-patch...

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group