Simple select with casting rounded numeric as varchar crushes the server
------------------------------------------------------------------------
Key: CORE-4093
URL: http://tracker.firebirdsql.org/browse/CORE-4093
Project: Firebird Core
Issue Type: Bug
Affects Versions: 2.5.3
Environment: Windows 7, I suppose any other also
Reporter: Petr Gurin
Priority: Minor
{{{
select cast(round(123.45, -40) as varchar (41)) from rdb$database
}}}
works fine
{{{
select cast(round(123.45, -40) as varchar (40)) from rdb$database
}}}
does conversion error from string "00000000000000000000000000000000000000000",
but
{{{
select cast(round(123.45, -41) as varchar (41)) from rdb$database
}}}
crushes the sever.
This select is really stupid and the problem was found occasionally while I was
testing the boundary behaviour of converting stored procedure; but the similar
request gives the possibility for the user to crash server practicaly without
any permissions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel