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)
|
ver 0.19.14 (not yet released)
|
||||||
* decoder
|
* decoder
|
||||||
|
- dsdiff: fix off-by-one buffer overflow
|
||||||
- opus: limit tag size to 64 kB
|
- opus: limit tag size to 64 kB
|
||||||
* fix build failures on non-glibc builds due to constexpr Mutex
|
* 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)
|
if (length == 0 || length > 60)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char string[length];
|
char string[length + 1];
|
||||||
char *label;
|
char *label;
|
||||||
label = string;
|
label = string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue