While investigating a user's complaint, I have found some memory
authorBruce Momjian <bruce@momjian.us>
Sun, 13 Dec 1998 04:39:00 +0000 (04:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 13 Dec 1998 04:39:00 +0000 (04:39 +0000)
commit366acc121aa8a7aab4c352de1ae04e19af8cdbbc
treed58dd7def8b5f7396b7fc6a23c6284533ea308e6
parent1aff8a9f244d4891e329b29343ae5e4dd1b17a3b
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,

Tatsuo Ishii
src/backend/catalog/index.c
src/backend/parser/gram.y