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

Fix endless loop in splitSystemUseEntries #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zagge-cgeo
Copy link

Fix endless loop in splitSystemUseEntries using all available memory. The problem happens on an iso where the system use was set to. 00 00 00 00 0d 55 58 41 00 00 00 00 00 00

This seems to be a CD-XA System Use Information.
The patch tests if the size of the SystemUseEntry is at least 3 bytes as defined in SUSP112 and if not an empty List of SystemUseEntry is returned.

Added a unit test that handles the case resulting in an endless loop.

Fix endless loop in splitSystemUseEntries using all available memory.
The problem happens on an iso where the system use was set to.
00 00 00 00 0d 55 58 41 00 00 00 00 00 00

This seems to be a CD-XA System Use Information.
The patch tests if the size of the SystemUseEntry is at least 3 bytes as
defined in SUSP112 and if not an empty List of SystemUseEntry is
returned.

Added a unit test that handles the case resulting in an endless loop.
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

Successfully merging this pull request may close these issues.

1 participant