Skip to content

Commit

Permalink
Merge pull request mozilla#54 from rojkov/jb29948-g31
Browse files Browse the repository at this point in the history
[embedlite] Check for dereferencing null pointer
  • Loading branch information
rojkov committed Sep 28, 2015
2 parents 259342f + e939ac9 commit 7dbc4af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ EmbedLiteViewThreadParent::RecvGetDPI(float* aValue)
{
NS_ABORT_IF_FALSE(mDPI > 0,
"Must not ask for DPI before View is properly initialized!");
NS_ABORT_IF_FALSE(!!aValue,
"Can't dereference null pointer!");

*aValue = mDPI;
return true;
Expand Down

0 comments on commit 7dbc4af

Please sign in to comment.