NULL pointer crashes hashname()

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: PostgreSQL-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: NULL pointer crashes hashname()
Date: 2004-08-05 16:32:29
Message-ID: DC5AA5BF69CE4A09B076C99B@sparkey.oopsware.intra
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

By accidently passing a NULL pointer in a RuleStmt's RangeVar relname i
recognized
that this can lead to a crash of the backend in the function hashname(),
located in hashfunc.c. It calls strlen() without checking the key pointer
in line 126, which leads on my machine to a null pointer violation. Since
i'm bloody new to the backend i don't really know if its worth to talk
about, but i want you to know.....

Platform is MDK Linux 10.0 Community Edition, glibc 2.3.3

--
Bernd

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan Gardner 2004-08-05 16:51:55 Re: Open items
Previous Message Mike Mascari 2004-08-05 16:03:21 Re: Tom in Doom3?