summaryrefslogtreecommitdiffstats
path: root/libcutils/native_handle.c
Commit message (Collapse)AuthorAgeFilesLines
* Prevent integer overflow when allocating native_handle_tAdam Lesinski2015-05-151-2/+8
| | | | | | | | | User specified values of numInts and numFds can overflow and cause malloc to allocate less than we expect, causing heap corruption in subsequent operations on the allocation. Bug: 19334482 Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
* Fix native_handle_create to check if malloc failsMichael Lentine2014-11-031-3/+5
| | | | | Bug: 18076253 Change-Id: I8dbe3af88f52f18f74a3ab857fea53ae7585e2f7
* move native_handle stuff from master_glMathias Agopian2009-05-201-0/+60