~ft/aacdec

1073aeef823cafd844704389e9a497c257768e2f — Fabian Greffrath 1 year, 2 months ago eb19fa5
mp4read.c: fix stack-buffer-overflow in stringin()/ftypin()

Terminate the string read into the stack buffer,
fixes #56.
1 files changed, 1 insertions(+), 0 deletions(-)

M frontend/mp4read.c
M frontend/mp4read.c => frontend/mp4read.c +1 -0
@@ 95,6 95,7 @@ static int stringin(char *txt, int sizemax)
        if (!txt[size])
            break;
    }
    txt[sizemax-1] = '\0';

    return size;
}