diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/DsdLib.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/DsdLib.cxx b/src/decoder/plugins/DsdLib.cxx index b1e8c776f..6cabf944d 100644 --- a/src/decoder/plugins/DsdLib.cxx +++ b/src/decoder/plugins/DsdLib.cxx @@ -127,10 +127,10 @@ dsdlib_tag_id3(InputStream &is, count = size - offset; /* Check and limit id3 tag size to prevent a stack overflow */ - if (count == 0 || count > 4096) + id3_byte_t dsdid3[4096]; + if (count == 0 || count > sizeof(dsdid3)) return; - id3_byte_t dsdid3[count]; id3_byte_t *dsdid3data; dsdid3data = dsdid3; |