diff options
Diffstat (limited to 'src/decoder/plugins/OpusReader.hxx')
-rw-r--r-- | src/decoder/plugins/OpusReader.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/OpusReader.hxx b/src/decoder/plugins/OpusReader.hxx index b8a6083a6..4d11607cb 100644 --- a/src/decoder/plugins/OpusReader.hxx +++ b/src/decoder/plugins/OpusReader.hxx @@ -85,7 +85,7 @@ public: char *ReadString() { uint32_t length; - if (!ReadWord(length)) + if (!ReadWord(length) || length >= 65536) return nullptr; const char *src = (const char *)Read(length); |