diff options
author | Lars Knoll <lars.knoll@qt.io> | 2019-11-15 12:28:56 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2019-12-08 10:30:10 +0100 |
commit | 3d9bae304cb1fa8f5f6f8854141fc8ecca92a333 (patch) | |
tree | 7251ef9237571076adc1a3203ccb9766ad0b1db2 /src/corelib/tools/qarraydatapointer.h | |
parent | 37e054993b763c022ab5f4a4d34e92ddffba34f5 (diff) |
Fix potential out of bounds write in the JSON writer
If a small string (1 or 2 chars) would require a JSON escape sequence
when writing out the string, the code could write out of bounds of the
byte array. Fix that by always allocating at least 16 bytes of space.
Change-Id: I4d023e7ed837b25b0a5dcf6cfaaf94aa55695b9f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydatapointer.h')
0 files changed, 0 insertions, 0 deletions