Skip to content

Commit 1748944

Browse files
fix: allow minimal Ogg pages with exactly 27 header bytes (<= boundary check)
1 parent 1f8194c commit 1748944

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripts/metadata/ogg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function extractOpusTags(data: Uint8Array, decoder: TextDecoder): Uint8Array[] {
3838
let offset = 0
3939
let inOpusTags = false
4040

41-
while (offset + OGG_HEADER_SIZE < data.length) {
41+
while (offset + OGG_HEADER_SIZE <= data.length) {
4242
const pageSignature = decoder.decode(data.subarray(offset, offset + 4))
4343
if (pageSignature !== 'OggS') break
4444

0 commit comments

Comments
 (0)