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

plproxy - plproxy: Fix argument value NULL check.

From: mkz(at)pgfoundry(dot)org (User Mkz)
To: pgsql-committers(at)postgresql(dot)org
Subject: plproxy - plproxy: Fix argument value NULL check.
Date: 2009-09-11 14:26:32
Message-ID: 20090911142632.8082B107207E@pgfoundry.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix argument value NULL check.

Incoming NULL value could cause crash in function containing SELECT
with different argument order.  Due to thinko, NULL check was done
with query arg index, instead of function arg index.

Reported by João Matos

Modified Files:
--------------
    plproxy/src:
        execute.c (r1.16 -> r1.17)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/execute.c?r1=1.16&r2=1.17)
    plproxy/sql:
        plproxy_select.sql (r1.3 -> r1.4)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/sql/plproxy_select.sql?r1=1.3&r2=1.4)
    plproxy/expected:
        plproxy_select.out (r1.4 -> r1.5)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/expected/plproxy_select.out?r1=1.4&r2=1.5)

pgsql-committers by date

Next:From: Tom LaneDate: 2009-09-11 14:51:36
Subject: Re: Re: [COMMITTERS] pgsql: On Windows, when a file is deleted and another process still has
Previous:From: User MkzDate: 2009-09-11 14:23:59
Subject: plproxy - plproxy: Fix potential buffer overflow when len(typname) > 32

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