libpqtypes - libpqtypes: va_arg was passed as an argument to the - Mailing list pgsql-committers

From achernow@pgfoundry.org (User Achernow)
Subject libpqtypes - libpqtypes: va_arg was passed as an argument to the
Date
Msg-id 20090129033124.9A14A17ADE6E@pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
va_arg was passed as an argument to the internal pqt_buf_putxxx macros for int2 and int4 put routines.  This corrupted
thevalue being put and caused the regression-test to fail.  Problem has only been seen on UnixWare 7.1.4.  Solution was
tostore the return of va_arg in a local variable and pass that to pqt_buf_putxxx macros. 

Modified Files:
--------------
    libpqtypes/src:
        numerics.c (r1.8 -> r1.9)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/libpqtypes/libpqtypes/src/numerics.c.diff?r1=1.8&r2=1.9)
        regression-test.c (r1.12 -> r1.13)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/libpqtypes/libpqtypes/src/regression-test.c.diff?r1=1.12&r2=1.13)

pgsql-committers by date:

Previous
From: teodor@postgresql.org (Teodor Sigaev)
Date:
Subject: pgsql: Fix bug with multiple evaluation of tsearch2 compatibility
Next
From: achernow@pgfoundry.org (User Achernow)
Date:
Subject: libpqtypes - libpqtypes: updated changelog