neilconway opened a new issue, #10787:
URL: https://github.com/apache/arrow-rs/issues/10787
### Describe the bug
See repro
### To Reproduce
```rust
use arrow_array::types::Decimal128Type;
use arrow_cast::parse::parse_decimal;
// debug: panic "attempt to add with overflow"
// release: Ok(-75618303760208547436305468318170713657)
parse_decimal::<Decimal128Type>(&"1".repeat(256), 38, 0);
// debug: panic "attempt to multiply with overflow"
parse_decimal::<Decimal128Type>("1e99999", 10, 0);
```
### Expected behavior
Both inputs should be rejected with an error, in both debug and release
builds.
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]