Re: [HACKERS] memory destruction in 6.4u

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: teo(at)flex(dot)ro (Constantin Teodorescu)
Cc: t-ishii(at)sra(dot)co(dot)jp, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] memory destruction in 6.4u
Date: 1998-12-13 04:42:07
Message-ID: 199812130442.XAA14367@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Added to TODO:

* views with spaces in view name fail when referenced

> Tatsuo Ishii wrote:
> >
> > While investigating a user's complaint, I have found some memory
> > destructions in 6.4 source using purify.
> >
> > (1) parser/gram.y:fmtId()
> >
> > It writes n+3 bytes into n+1 byte-long memory area if mixed case or
> > non-ascii identifiers given.
>
> Could that be also the cause for the two bugs that I have been reported
> some time ago occuring when object names contain spaces ?
>
> PostgreSQL 6.4 on RedHat Linux i386, 2.0.36 Kernel
>
> THE FIRST ONE
> =============
> test=>create table students (id int4, name text);
> CREATE
> test=> create view "my view" as select * from students;
> CREATE
> test=> select * from "my view";
> ERROR: nodeRead: Bad type 0
>
>
> THE SECOND ONE
> ==============
> test=> create sequence student_id;
> CREATE
> test=> create table "my students" (id int4 default
> nextval('student_id'), name text);
> ERROR: my: Table does not exist.
>
> --
> Constantin Teodorescu
> FLEX Consulting Braila, ROMANIA
>
>

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-12-13 04:44:17 Re: [HACKERS] PgAccess version 0.93 (for Unix and Windows) has been released!
Previous Message Bruce Momjian 1998-12-13 04:37:38 Re: [HACKERS] memory destruction in 6.4