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

Commit 4b5c0b3e authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Automerger Merge Worker
Browse files

Merge "Suppress sizeof warnings on unusual malloc" am: 6a341dd4 am: 35288276

parents 9b288a09 35288276
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@ status_t OggWriter::addSource(const sp<MediaSource>& source) {
        return ERROR_UNSUPPORTED;
    }

    // NOLINTNEXTLINE(clang-analyzer-unix.MallocSizeof)
    mOs = (OggStreamState*) malloc(sizeof(ogg_stream_state));
    if (ogg_stream_init((ogg_stream_state*)mOs, rand()) == -1) {
        ALOGE("ogg stream init failed");