Skip site navigation (1) Skip section navigation (2)

Error in chkpass.c (contrib area) with suggestion

From: Sedlak Anton <ased(at)cce(dot)cz>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Error in chkpass.c (contrib area) with suggestion
Date: 2002-10-22 11:00:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Because author is not responding I'm writing to you.
In contrib/chkpass.c there is no checking against NULL values on input, 
thus if you call eg. raw(NULL) then postgresql always dies.
Although storing encrypted password are highly required this behavior 
makes this extension module unusable.

To correct it one must add some checkin before any PG_GETARG_XXX in 
Suggested type of code follows:

Best regards and let me know if this is acceptable

Sedlak Anton


pgsql-bugs by date

Next:From: pgsql-bugsDate: 2002-10-22 12:29:20
Subject: Bug #802: Can't short hungarian database with PostgreSQL on Debian/Woody
Previous:From: Tom LaneDate: 2002-10-22 04:31:15
Subject: Re: Odd random drop sequence failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group