Loading media/libmedia/IOMX.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -701,11 +701,12 @@ status_t BnOMX::onTransact( void *params = NULL; void *params = NULL; size_t pageSize = 0; size_t pageSize = 0; size_t allocSize = 0; size_t allocSize = 0; if ((index == (OMX_INDEXTYPE) OMX_IndexParamConsumerUsageBits && size < 4) || bool isUsageBits = (index == (OMX_INDEXTYPE) OMX_IndexParamConsumerUsageBits); (code != SET_INTERNAL_OPTION && size < 8)) { if ((isUsageBits && size < 4) || (!isUsageBits && code != SET_INTERNAL_OPTION && size < 8)) { // we expect the structure to contain at least the size and // we expect the structure to contain at least the size and // version, 8 bytes total // version, 8 bytes total ALOGE("b/27207275 (%zu)", size); ALOGE("b/27207275 (%zu) (%d/%d)", size, int(index), int(code)); android_errorWriteLog(0x534e4554, "27207275"); android_errorWriteLog(0x534e4554, "27207275"); } else { } else { err = NO_MEMORY; err = NO_MEMORY; Loading Loading
media/libmedia/IOMX.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -701,11 +701,12 @@ status_t BnOMX::onTransact( void *params = NULL; void *params = NULL; size_t pageSize = 0; size_t pageSize = 0; size_t allocSize = 0; size_t allocSize = 0; if ((index == (OMX_INDEXTYPE) OMX_IndexParamConsumerUsageBits && size < 4) || bool isUsageBits = (index == (OMX_INDEXTYPE) OMX_IndexParamConsumerUsageBits); (code != SET_INTERNAL_OPTION && size < 8)) { if ((isUsageBits && size < 4) || (!isUsageBits && code != SET_INTERNAL_OPTION && size < 8)) { // we expect the structure to contain at least the size and // we expect the structure to contain at least the size and // version, 8 bytes total // version, 8 bytes total ALOGE("b/27207275 (%zu)", size); ALOGE("b/27207275 (%zu) (%d/%d)", size, int(index), int(code)); android_errorWriteLog(0x534e4554, "27207275"); android_errorWriteLog(0x534e4554, "27207275"); } else { } else { err = NO_MEMORY; err = NO_MEMORY; Loading