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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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