Issue Details (XML | Word | Printable)

Key: CORE-6345
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Simonov Denis
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Server crashes on overflow of division result

Created: 25/Jun/20 04:32 PM   Updated: 26/Jun/20 08:04 AM
Component/s: Engine
Affects Version/s: 2.5.9, 3.0.5, 4.0 Beta 2
Fix Version/s: 3.0.6, 4.0 RC 1

Environment:
ISQL Version: WI-V4.0.0.2076 Firebird 4.0 Release Candidate 1
Server version:
Firebird/Windows/AMD/Intel/x64 (access method), version "WI-V4.0.0.2076 Firebird 4.0 Release Candidate 1"
Firebird/Windows/AMD/Intel/x64 (remote server), version "WI-V4.0.0.2076 Firebird 4.0 Release Candidate 1/tcp (DESKTOP-E3INAFT)/P16:C"
Firebird/Windows/AMD/Intel/x64 (remote interface), version "WI-V4.0.0.2076 Firebird 4.0 Release Candidate 1/tcp (DESKTOP-E3INAFT)/P16:C"
on disk structure version 13.0

QA Status: Done successfully


 Description  « Hide
Server crashes on overflow of division result

SQL> select -922337203685477.5808/-1.0 from rdb$database;

                                       DIVIDE
=============================================
Statement failed, SQLSTATE = 08006
Error reading data from the connection.

firebird.log contains the following error entry

DESKTOP-E3INAFT Thu Jun 25 19:27:24 2020
Interger overflow.
The result of an integer operation caused the
most significant bit of the result to carry.
This exception will cause the Firebird server
to terminate abnormally.


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 26/Jun/20 05:29 AM
Confirmed on linux too. And that's not v4 regression - previous versions are also affected.

Alexander Peshkov added a comment - 26/Jun/20 07:25 AM
Also backported to B2_5 - may be someone would like to have private build with fixed crash.