decoder/opus: limit tag size to 64 kB
This commit is contained in:
parent
bbda335e02
commit
976fdd76c1
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.19.14 (not yet released)
|
ver 0.19.14 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- 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
|
||||||
|
|
||||||
ver 0.19.13 (2016/02/23)
|
ver 0.19.13 (2016/02/23)
|
||||||
|
|
|
@ -85,7 +85,7 @@ public:
|
||||||
|
|
||||||
char *ReadString() {
|
char *ReadString() {
|
||||||
uint32_t length;
|
uint32_t length;
|
||||||
if (!ReadWord(length))
|
if (!ReadWord(length) || length >= 65536)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
const char *src = (const char *)Read(length);
|
const char *src = (const char *)Read(length);
|
||||||
|
|
Loading…
Reference in New Issue