diff options
author | Filippo Cucchetto <f.cucchetto@asem.it> | 2016-11-23 10:08:38 +0100 |
---|---|---|
committer | Filippo Cucchetto <filippocucchetto@gmail.com> | 2016-11-23 10:44:05 +0000 |
commit | 32831880512272968e26ed6a85a5cd98ecbda3b6 (patch) | |
tree | 4d28ce391f211f6ad67e4594568c6ebc711b1d1e /src/controls/Styles/Base/SliderStyle.qml | |
parent | eb2df59fb203668734d652808c74b0504864cc1e (diff) | |
download | qtquickcontrols-32831880512272968e26ed6a85a5cd98ecbda3b6.tar.gz |
Fixed possible crash due to out of memory on ARM
When diving two real values we can obtain an Infinite value.
The qml engine perform an implicit conversion (and silent) if this value
is directly assigned to an "int" property. On Arm the conversion of
Infinite to int gives the value +2147483648. Thus the Repeater model
instantiate 2147483648 items and crashes. By morphing both the rowHeight
and paddedRowCount properties to "real" we keep the Infinite value semantic.
This allows the Repeater to handle properly the Infinite case.
Task-number: QTBUG-57283
Change-Id: I376f9ca497bea1f1aab413d1c1ba87d918b73fbb
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/controls/Styles/Base/SliderStyle.qml')
0 files changed, 0 insertions, 0 deletions