fix: add metaint validation and mid-metadata truncation test
Made-with: Cursor
This commit is contained in:
@@ -27,6 +27,7 @@ class IcyParser(
|
||||
}
|
||||
|
||||
private fun parseWithMetadata(metaint: Int) {
|
||||
require(metaint > 0) { "metaint must be positive, got $metaint" }
|
||||
val audioBuf = ByteArray(metaint)
|
||||
while (true) {
|
||||
val audioRead = readFully(audioBuf, 0, metaint)
|
||||
|
||||
Reference in New Issue
Block a user