Re: fix for palloc() of user-supplied length - Mailing list pgsql-patches

From Serguei Mokhov
Subject Re: fix for palloc() of user-supplied length
Date
Msg-id 1030507946.3d6c4daa4fc22@mailhost.cs.concordia.ca
Whole thread Raw
In response to Re: fix for palloc() of user-supplied length  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
I wrote:

> > I've attached a revised patch that includes the additional check Tom
> > suggested (len < 1). Unless anyone else steps forward, I'm inclined to
>
> +         if (len < 1 || len > 8192)
> +         {
> +                 elog(LOG, "Password packet length too long: %d", len);
>                                                     ^^^^^^^^
> Shouldn't it be changed to 'too long || too long' then? ;)

A typo: [too short or too short] :)

--
Serguei A. Mokhov, <mailto: mokhov @ cs.concordia.ca>
Computer Science, Concordia University

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

pgsql-patches by date:

Previous
From: "Karim Mribti"
Date:
Subject: PostgreSQL spanish translation.
Next
From: Manfred Koizar
Date:
Subject: Visibility regression test