]> granicus.if.org Git - postgresql/commit
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)
commit47cae78f7e0bb460f4cda0d526da968a2a94ec55
tree0c96d72e103e58f93b4d9f36e916e91264af1372
parentbc27c2e4ce922101aa7e05cea39559950f1c7511
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