Review Request 121600: sublime: prevent accidentally adding nullptrs to ContainerPrivate::viewForWidget

Nicolai Hähnle nhaehnle at gmail.com
Fri Dec 19 19:09:38 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121600/
-----------------------------------------------------------

Review request for KDevelop.


Repository: kdevplatform


Description
-------

The likely culprit here is using operator[] to access a map, which implicitly
creates an entry containing a null view. I have audited all other accesses of
viewForWidget with operator[] to verify that they happen in a context where
the entry is non-null (either because the access is used to assign a non-null
view pointer or because the access is guaranteed to crash or abort immediately
if it would create an incorrect nullptr entry).

BUG: 342037


Diffs
-----

  sublime/container.cpp aac4b11679fcb7a04e8aee7f831c95b0d1e4192c 

Diff: https://git.reviewboard.kde.org/r/121600/diff/


Testing
-------

manual testing


Thanks,

Nicolai Hähnle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20141219/0e515b75/attachment.html>


More information about the KDevelop-devel mailing list