Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/11917 )

Change subject: IMPALA-5031: signed overflow is undefined behavior
......................................................................

IMPALA-5031: signed overflow is undefined behavior

This patch fixes a signed overflow in the backend test
DecimalTest.Overflow. The interesting part of the backtrace is:

runtime/decimal-value.inline.h:254:17: runtime error: signed integer
         overflow: 0x4b3b4ca85a86c47a098a223fffffffff +
         0x4b3b4ca85a86c47a098a223fffffffff cannot be represented in
         type '__int128'
    #0 detail::AddLarge(__int128, int, __int128, int, int, bool,
         bool*) runtime/decimal-value.inline.h:254:17
    #1 DecimalValue<__int128> DecimalValue<__int128>::Add<__int128>(
         int, DecimalValue<__int128> const&, int, int, int, bool,
         bool*) const runtime/decimal-value.inline.h:371:14
    #2 DecimalTest_Overflow_Test::TestBody()
         runtime/decimal-test.cc:540:9

Change-Id: I146bcf35d34cc0e14be0633427d3e4bd0e5a261e
Reviewed-on: http://gerrit.cloudera.org:8080/11917
Reviewed-by: Jim Apple <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M be/src/runtime/decimal-value.inline.h
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Jim Apple: Looks good to me, approved
  Impala Public Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/11917
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I146bcf35d34cc0e14be0633427d3e4bd0e5a261e
Gerrit-Change-Number: 11917
Gerrit-PatchSet: 3
Gerrit-Owner: Jim Apple <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jim Apple <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>

Reply via email to