Bug #107816 | Reading SQL_C_UBIGINT with strtoll - truncating values bigger than 7FFFFFFFFFFFF | ||
---|---|---|---|
Submitted: | 8 Jul 2022 13:55 | Modified: | 8 Aug 2022 10:26 |
Reporter: | Grzegorz Leszczyński | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 8.0.28 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[8 Jul 2022 13:55]
Grzegorz Leszczyński
[15 Jul 2022 12:44]
MySQL Verification Team
Hello, Thank you for the bug report. Imho 0x7FFFFFFFFFFFF is well within signed long integer. Did you mean the number is 0x7FFFFFFFFFFFFF(an extra F)? Regards, Ashwini Patil
[15 Jul 2022 13:20]
Grzegorz Leszczyński
I wrote "bigger than 7FFFFFFFFFFFF" (anyway I missed two F at the end, so it should be "bigger than 7FFFFFFFFFFFFFF" - which doesn't fit in signed integer, but fits in unsigned version), so for example 0x800000000000000.
[15 Jul 2022 13:29]
Grzegorz Leszczyński
Ehh, sorry. Again I ate digit from the end. Now I copied it from test, not wrote it by hand :-) It should be: "bigger than 7FFFFFFFFFFFFFFF, so for example 0x8000000000000000".
[19 Jul 2022 6:26]
MySQL Verification Team
Hello, Thank you for the details. Verified as described. Regards, Ashwini Patil
[19 Jul 2022 6:47]
Bogdan Degtyariov
Posted by developer: The bug is verified with Connector/ODBC 8.0.30.
[8 Aug 2022 10:26]
Bogdan Degtyariov
Posted by developer: The patch for this bug is pushed into the source tree.