qt5base-lts/tests/auto/corelib/tools/qversionnumber
Marc Mutz 1ce6e432b6 QVersionNumber: correctly fail for numerically very large segments
The result of qstrtoull() was unconditionally truncated to an int,
resulting in wrong values being appended to the segments vector
when the numerical segment value was above INT_MAX.

Prevent this by first checking the return value of qstrtoull
as a qulonglong for values larger than INT_MAX and stopping
processing in that case. That means that segments that
numerically overflow an int are now considered part of the
suffix.

Also added tests for the case where a segment value is larger
than ULLONG_MAX. That was already working correctly.

Change-Id: Ia4b89021dcfe6bfae27c8d89bb678ec5e0e3b847
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-09-23 20:42:01 +02:00
..
qversionnumber.pro Long live QVersionNumber! 2014-08-09 09:00:24 +02:00
tst_qversionnumber.cpp QVersionNumber: correctly fail for numerically very large segments 2014-09-23 20:42:01 +02:00