diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-18 02:22:39 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-18 17:53:38 +0000 |
commit | 2e7b1e0e8e606f1e35d666dd80f512b3c37d2c6a (patch) | |
tree | 21a7870ee81cf758d6eb9d82625bd54a5f340177 /tools | |
parent | d7cd210bb4aed802d30e6f67e2db950e561a033b (diff) |
QQmlListModel: Fix potential uninitialized value
If roleCount is 0, alloca(0) will give us a pointer. The loop will then not
initialize the returned pointer (due to the roleCount being 0), passing an
uninitialized changedRoles to emitDirectNotifies.
emitDirectNotifies doesn't access changedRoles unconditionally (via
another for loop), but this is probably better to check than not.
Coverity-Id: 172868
Done-with: John Brooks
Change-Id: I821c06221d2659d3310082b4e81442cc58b197f7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions