decoder/dsdiff: fix off-by-one buffer overflow

This commit is contained in:
Max Kellermann
2016-03-06 23:28:29 +01:00
parent 976fdd76c1
commit b24cbc68ba
2 changed files with 2 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ dsdiff_handle_native_tag(InputStream &is,
if (length == 0 || length > 60)
return;
char string[length];
char string[length + 1];
char *label;
label = string;