summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsbackingstore.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-11-15 12:28:56 +0100
committerLars Knoll <lars.knoll@qt.io>2019-12-08 10:30:10 +0100
commit3d9bae304cb1fa8f5f6f8854141fc8ecca92a333 (patch)
tree7251ef9237571076adc1a3203ccb9766ad0b1db2 /src/plugins/platforms/windows/qwindowsbackingstore.cpp
parent37e054993b763c022ab5f4a4d34e92ddffba34f5 (diff)
Fix potential out of bounds write in the JSON writerHEADdev
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/plugins/platforms/windows/qwindowsbackingstore.cpp')
0 files changed, 0 insertions, 0 deletions