Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop with certain input files #47

Open
helgoboss opened this issue Feb 2, 2025 · 1 comment
Open

Infinite loop with certain input files #47

helgoboss opened this issue Feb 2, 2025 · 1 comment

Comments

@helgoboss
Copy link

Hi! First, thanks a lot for your library! I appreciate it very much that you made it available to everyone.

I ran detection on a bunch of files and found that the following ones cause an infinite loop.

MP3

File: https://github.com/WebKit/WebKit/blob/6cf28a29e81644f42c8bffff78f410003df87ec6/LayoutTests/imported/w3c/web-platform-tests/mimesniff/media/resources/mp3-with-id3.mp3

Infinite loop:

while (filled < size) {

Dart

File: https://github.com/WebKit/WebKit/blob/6cf28a29e81644f42c8bffff78f410003df87ec6/LayoutTests/imported/w3c/web-platform-tests/webcodecs/sfx-opus.ogg

Infinite loop:

while (page?.headerType != 0x04) {

Maybe WebKit chose some particularly interesting audio files for their tests ;)

@helgoboss
Copy link
Author

Ah, might actually be a duplicate of #46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant