summaryrefslogtreecommitdiffstats
path: root/LICENSE.LGPLv3
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2019-03-05 10:49:10 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-03-06 07:59:50 +0000
commit856fb1ab44722f5165fb6b5dec0bd748006acd10 (patch)
treed7899197d103df24f9e99a6a20644909b2f29b0c /LICENSE.LGPLv3
parente8d3306c8f86bf21648693521d8be91bb8f1335e (diff)
xcb: check for nullptr when reading AT_SPI_BUS propertyv5.12.2
We always have to check the return value of xcb_get_property(), but this code did not do it. These xcb functions do not check for validity of the pointer, so we have to make sure that we pass-in something valid: void * xcb_get_property_value (const xcb_get_property_reply_t *R) { return (void *) (R + 1); } int xcb_get_property_value_length (const xcb_get_property_reply_t *R) { return (R->value_len * (R->format / 8)); } Fixes: QTBUG-74067 Change-Id: Iabbc81e6079d96c7314d16dd78783de07f9ad629 Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions