Skip to content

memory resource leak in OpenMP4Source() #101

@invd

Description

@invd

The OpenMP4Source() function does not free the malloc()'ed memory for

mp4object *mp4 = (mp4object *)malloc(sizeof(mp4object));

when it is called with a MP4 input file that is smaller than 64 byte. This is due to the abort condition that misses a free(mp4):

if (mp4->filesize < 64) return 0;

This problem should not have any impact in practice since the caller will likely abort early and the memory will be reclaimed on program exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions