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

1
NEWS
View File

@ -1,5 +1,6 @@
ver 0.19.14 (not yet released)
* decoder
- dsdiff: fix off-by-one buffer overflow
- opus: limit tag size to 64 kB
* fix build failures on non-glibc builds due to constexpr Mutex

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;