commit | 35328c18d361f2870fc67505ab5e888f4f8132da | [log] [tgz] |
---|---|---|
author | Dustin Graves <dustin@lunarg.com> | Mon Feb 29 13:35:07 2016 -0700 |
committer | Dustin Graves <dustin@lunarg.com> | Mon Mar 07 11:38:36 2016 -0700 |
tree | b1aeabdf12b586737a356ff3d3106e63bc432b19 | |
parent | a2b2e4654b46261413440065e313dde428ad71cc [diff] |
layers: Handle indirection in param_checker Code was being generated for param_checker that looked like: validate_pointer(pAllocInfo); validate_array(pAllocInfo->count, array); Where validate_array could dereference a NULL pointer. The code generator was updated to insert NULL checks for this case: validate_pointer(pAllocInfo); if (pAllocInfo != NULL) { validate_array(pAllocInfo->count, array); } Change-Id: I1eda66530dbff2e95d604a20d122179be172bedf