Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e79453f authored by rago's avatar rago Committed by android-build-merger
Browse files

Fix potential NULL dereference in Visualizer effect am: 0c39abc4 am:...

Fix potential NULL dereference in Visualizer effect am: 0c39abc4 am: 18b2de20 am: bcd048ae am: 67c5eb20 am: 996c0f33 am: ae2849ff am: b69cec19 am: e8b78f62 am: a8f0a1ff am: bd78fe1f am: dc3ca4ac am: 6ae40159
am: fa7e9289

Change-Id: I511fb00f8b5d289a218e0a29234ceab993aa8429
parents 9c50bd83 fa7e9289
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -869,9 +869,13 @@ int visualizer_command(effect_context_t * context, uint32_t cmdCode, uint32_t cm
    case VISUALIZER_CMD_MEASURE: {
        if (pReplyData == NULL || replySize == NULL ||
                *replySize < (sizeof(int32_t) * MEASUREMENT_COUNT)) {
            ALOGV("%s VISUALIZER_CMD_MEASURE error *replySize %d <"
                    "(sizeof(int32_t) * MEASUREMENT_COUNT) %d",
            if (replySize == NULL) {
                ALOGV("%s VISUALIZER_CMD_MEASURE error replySize NULL", __func__);
            } else {
                ALOGV("%s VISUALIZER_CMD_MEASURE error *replySize %u <"
                        "(sizeof(int32_t) * MEASUREMENT_COUNT) %zu",
                        __func__, *replySize, sizeof(int32_t) * MEASUREMENT_COUNT);
            }
            android_errorWriteLog(0x534e4554, "30229821");
            return -EINVAL;
        }