decoder/dsdiff: fix off-by-one buffer overflow
This commit is contained in:
parent
976fdd76c1
commit
b24cbc68ba
1
NEWS
1
NEWS
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue