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.

Sun, 22 Mar 1998 14:10:06 +0100
Maurice Gittens <mgittens@david.gits.nl>
patch for buffer overrun with sequences
Applied.

> 
> 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.
> 
> 


-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

Mon, 30 Mar 1998 12:14:31 -0500 (EST)
Bruce Momjian <maillist@candle.pha.pa.us>
Re: [HACKERS] patch for buffer overrun with sequences