am 8aa93764: Merge "Fixing NULL pointer access causing segmentation fault in aapt"
* commit '8aa93764ea025b1c20f96b366ae6efb17e4f2d67': Fixing NULL pointer access causing segmentation fault in aapt
This commit is contained in:
@@ -3011,7 +3011,7 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp<const ResourceFilter>&
|
|||||||
|
|
||||||
// We need to write one type chunk for each configuration for
|
// We need to write one type chunk for each configuration for
|
||||||
// which we have entries in this type.
|
// which we have entries in this type.
|
||||||
const size_t NC = t->getUniqueConfigs().size();
|
const size_t NC = t != NULL ? t->getUniqueConfigs().size() : 0;
|
||||||
|
|
||||||
const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N;
|
const size_t typeSize = sizeof(ResTable_type) + sizeof(uint32_t)*N;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user