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: 199803221310.OAA32729@david.gits.nl (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi,

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.

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


With regards from Maurice.

Responses

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-2014 The PostgreSQL Global Development Group