Merge "gralloc: layercount validation check"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
efc1c4ac84
@@ -52,7 +52,7 @@ QtiMapper::QtiMapper() {
|
||||
|
||||
bool QtiMapper::ValidDescriptor(const IMapper::BufferDescriptorInfo &bd) {
|
||||
if (bd.width == 0 || bd.height == 0 || (static_cast<int32_t>(bd.format) <= 0) ||
|
||||
bd.layerCount != 1) {
|
||||
bd.layerCount <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user