Skip to content

Do not abort but only warn on unexpected CD-ROM image size#1084

Merged
uweseimet merged 5 commits intodevelopfrom
fix_issue_1081
Jan 28, 2023
Merged

Do not abort but only warn on unexpected CD-ROM image size#1084
uweseimet merged 5 commits intodevelopfrom
fix_issue_1081

Conversation

@uweseimet
Copy link
Copy Markdown
Contributor

Also removed some redundant comments.

@uweseimet uweseimet marked this pull request as ready for review January 28, 2023 10:15
if (rawfile) {
if (size % 2536) {
throw io_exception("Raw ISO CD-ROM file size must be a multiple of 2536 bytes but is "
GetLogger().Warn("Raw ISO CD-ROM file size ist not a multiple of 2536 bytes but is "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "ist not"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thank you for noticing this.

@uweseimet uweseimet merged commit b6941c9 into develop Jan 28, 2023
@uweseimet uweseimet deleted the fix_issue_1081 branch January 28, 2023 16:28
rdmark pushed a commit that referenced this pull request Jan 28, 2023
* Do not abort but only warn on unexpected CD-ROM image size

* Unit test update

* Updated exception handling

* Cleanup

* Fixed typo
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.

piscsi doesn't gracefully handle bad (I think?) images

2 participants