Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E44C10BB3 for ; Wed, 7 Aug 2013 17:08:51 +0000 (UTC) Received: (qmail 43609 invoked by uid 500); 7 Aug 2013 17:08:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 43589 invoked by uid 500); 7 Aug 2013 17:08:50 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 43251 invoked by uid 99); 7 Aug 2013 17:08:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 17:08:49 +0000 Date: Wed, 7 Aug 2013 17:08:49 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-5536) Client's ResultSet#getLong does not range check when converting from a DECIMAL column MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-5536: ---------------------------------- Assignee: Dag H. Wanvik (was: Kathey Marsden) Labels: derby_backport_reject_10_8 (was: ) Won't backport after all. This fix uses BigDecimal.longValueExact() which is not available in 1.4.2 so the fix does not build on 10.8. > Client's ResultSet#getLong does not range check when converting from a DECIMAL column > ------------------------------------------------------------------------------------- > > Key: DERBY-5536 > URL: https://issues.apache.org/jira/browse/DERBY-5536 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Labels: derby_backport_reject_10_8 > Fix For: 10.9.1.0 > > Attachments: derby-5536-2.diff, derby-5536-2.stat, derby-5536-3.diff, derby-5536-3.stat, derby-5536.diff, derby-5536-refactor.diff, derby-5536.stat, MissingRangeCheck.java > > > Derby's DECIMAL can contain an integer of 31 digits. This can overflow a long. The embedded JDBC driver catches this, but the client does not and can yield a corrupt long, cf enclosed repro. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira