diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-22 16:08:27 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-29 16:06:47 +0100 |
| commit | 23fb1c50eecaed2f5a3ebfe95e72892c054e4414 (patch) | |
| tree | 6ecb1c82f886f2139f75919a39489a6cefb6902c /src/corelib/serialization/qjsonarray.cpp | |
| parent | cc5251ed59ea6ecf0cc666ae5321be6de5383e90 (diff) | |
QJniArray: assert that source container is not too large
Java still only can handle arrays of at most 2^31 entries, and the JNI
API for working with arrays is using types that are essentially int.
Assert that the container passed in is not larger than that.
Found during API review.
Task-number: QTBUG-119952
Pick-to: 6.7
Change-Id: Ia0cbdbf098cf5b2c8ec50f0dd24dadf833bf40d0
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonarray.cpp')
0 files changed, 0 insertions, 0 deletions
