Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in
Date
Msg-id GNELIHDDFBOCMGBFGEFOAEMGCDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Looks like cash_words is fixed in current CVS, so I guess in 7.2.1:
>     
>     Welcome to psql 7.3devel, the PostgreSQL interactive terminal.
>     
>     Type:  \copyright for distribution terms
>            \h for help with SQL commands
>            \? for help on internal slash commands
>            \g or terminate with semicolon to execute query
>            \q to quit
>     
>     test=> select cash_words('-700000000000000000000000000000');
>                                                          
> cash_words         
>                                                
>     
> ------------------------------------------------------------------
> --------------------------------------------------
>     
>      Minus twenty one million four hundred seventy four thousand eight
>     hundred thirty six dollars and forty eight cents
>     (1 row)

It doesn't crash - but it sure is giving the wrong answer ;)

Chris



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Remove implicit unique index creation on SERIAL columns?
Next
From: Tom Lane
Date:
Subject: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in