Mitigate integer overflow in ComputeShrinkHard (#1138)

The multiplication in ComputeShrinkHard has the potential to overflow when
very large elements are present inside of a vbox. To mitigate the issue, the
multiplication happens in int64_t values.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
its-pablo
2025-10-19 01:06:46 -07:00
committed by GitHub
parent d4fda16e20
commit 68281ce3e8
2 changed files with 18 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ Next
- Fix vertical `ftxui::Slider`. The "up" key was previously decreasing the
value. Thanks @its-pablo in #1093 for reporting the issue.
### Dom
- Fix integer overflow in `ComputeShrinkHard`. Thanks @its-pablo in #1137 for
reporting and fixing the issue.
6.1.9 (2025-05-07)
------------