bug in ODBC Bind messege for SunOS

bug in ODBC Bind messege for SunOS

am 10.09.2007 20:54:21 von Zahid Khan

Hi ,

Going through the code of psqlODBC i suspect a bug
in bind messege function BuildBindRequest() for
SunOS(64bit).

I found netleng is declared with size_t and the sizeof
size_t is of eight byte on SunOS 64bit whereas PG
protocol expect 4 bytes for legth over the network.

*int* type can be the quick fix -:)

Thanks,
Zahid K.


=20
____________________________________________________________ _____________=
___________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Re: bug in ODBC Bind messege for SunOS

am 11.09.2007 02:19:06 von Hiroshi Inoue

Zahid Khan wrote:
> Hi ,
>
> Going through the code of psqlODBC i suspect a bug
> in bind messege function BuildBindRequest() for
> SunOS(64bit).
>
> I found netleng is declared with size_t and the sizeof
> size_t is of eight byte on SunOS 64bit whereas PG
> protocol expect 4 bytes for legth over the network.

Seems you are right.
I would commit the fix tonight.

Thanks.
Hiroshi Inoue


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings