Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bca6838e authored by Jing Mike's avatar Jing Mike Committed by Michael Bestas
Browse files

Check for Potential Null Pointer



After calling the function AndroidBitmap_lockPixels(), neither the
return value nor the returned pointers were checked for the possible
failure. So the pointers "source" & "destination" could have invalid
value.

Along with changes above, we also have some compile warnings and code
format cleaned.

Test: mmm packages/apps/Gallery2, presubmit check.

Change-Id: I28a5d678311cb963bacd6f7b96ca2e12d498d965
Signed-off-by: default avatarJing Mike <jingyangliu@eswincomputing.com>
parent 28a7edf3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment