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

patch for buffer overrun with sequences

From: Maurice Gittens <mgittens(at)david(dot)gits(dot)nl>
To: hackers(at)postgresql(dot)org
Subject: patch for buffer overrun with sequences
Date: 1998-03-22 13:10:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

The buffer overrun while creating sequences turns out to be 
a read access overrun. For the sake of doing things properly 
here is a patch which fixes it.

This patch is for the file backend/commands/sequence.c.

> 	NameData	name;
< 				value[i - 1] = PointerGetDatum(seq->seqname);
> 				namestrcpy(&name, seq->seqname);
> 				value[i - 1] = NameGetDatum(&name);

With regards from Maurice.


pgsql-hackers by date

Next:From: Andreas KlemmDate: 1998-03-22 14:22:33
Subject: problems running pgaccess 0.73 and 0.84 with new postgresql 6.3
Previous:From: Andreas KlemmDate: 1998-03-22 12:56:23
Subject: urgent: pgsql 6.3 FreeBSD port update trouble, --with-tcl doesn't work

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