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

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

IMPALA-5031: signed overflow is undefined behavior

Tis patch fixes a signed overflow in the test
StringToDecimal.LargeDecimals. The interesting part of the backtrace
is:

util/string-parser.h:397:14: runtime error: signed integer overflow:
  0x4b3b4ca85a86c47a098a223fffffffff * 10 cannot be represented in
  type '__int128'
    #0 void StringParser::ApplyExponent<__int128>(int, int,
      signed char, __int128*, int*, int*) util/string-parser.h:397:14
    #1 DecimalValue<__int128> StringParser::StringToDecimal<__int128>
      (char const*, int, int, int, bool, StringParser::ParseResult*)
      util/string-parser.h:221:5
    #2 void VerifyParse<__int128>(string const&, int, int, bool,
      DecimalValue<__int128> const&, StringParser::ParseResult)
      runtime/decimal-test.cc:53:25
    #3 void VerifyParse<__int128>(string const&, int, int,
      DecimalValue<__int128> const&, StringParser::ParseResult)
      runtime/decimal-test.cc:65:3
    #4 StringToDecimal_LargeDecimals_Test::TestBody()
      runtime/decimal-test.cc:443:3

Change-Id: Ifb4effa291e1e4dac62b84251c74c483d99b06e7
Reviewed-on: http://gerrit.cloudera.org:8080/12426
Reviewed-by: Jim Apple <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M be/src/util/string-parser.h
1 file changed, 2 insertions(+), 1 deletion(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifb4effa291e1e4dac62b84251c74c483d99b06e7
Gerrit-Change-Number: 12426
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