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

Re: [HACKERS] patch for buffer overrun with sequences

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: mgittens(at)david(dot)gits(dot)nl (Maurice Gittens)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] patch for buffer overrun with sequences
Date: 1998-03-30 17:14:31
Message-ID: 199803301714.MAA15066@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
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(at)candle(dot)pha(dot)pa(dot)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)

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-03-30 17:22:11
Subject: [PORTS] Port Bug Report: ident authority map problem (fwd)
Previous:From: Thomas G. LockhartDate: 1998-03-30 16:55:03
Subject: Re: [DOCS] Reference Manual

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