From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | t-ishii(at)sra(dot)co(dot)jp (Tatsuo Ishii), hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] memory destruction in 6.4 |
Date: | 1998-12-13 11:14:28 |
Message-ID: | 199812131114.UAA00943@ext16.sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Applied to both trees.
>
>
>
> > 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.
> >
> > (2) catalog/index.c:
> >
> > ATTRIBUTE_TUPLE_SIZE bytes are allocated but
> > sizeof(FormData_pg_attribute) bytes are written. Note that
> > ATTRIBUTE_TUPLE_SIZE is smaller than
> > sizeof(FormData_pg_attribute). (for example, on solaris 2.6,
> > ATTRIBUTE_TUPLE_SIZE is 3 bytes smaller).
> >
> > Attached patches try to fix the problem. I do not check all of sources
> > and there may be similar mistakes remained, however.
> > --
> > Tatsuo Ishii
Thank you for taking care of my patches.
---
Tatsuo Ishii
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 1998-12-13 11:14:37 | Re: [HACKERS] 6.4.1 release |
Previous Message | Oliver Elphick | 1998-12-13 10:04:37 | Re: [HACKERS] postgresql/c.h typedefs Size as 'unsigned int' (fwd) |