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

Minotaur/Scroll fx guis #672

Merged
merged 14 commits into from
Sep 20, 2022
Merged

Conversation

WALLOFJUSTICE
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@SheridanR SheridanR left a comment

Choose a reason for hiding this comment

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

Should fix the OOB write but other than that looks good

char buf[buffer_size];
const int count = fp->read(buf, sizeof(buf[0]), sizeof(buf) - 1);
static char buf[buffer_size];
const int count = fp->read(buf, sizeof(buf[0]), sizeof(buf));
Copy link
Collaborator

Choose a reason for hiding this comment

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

if count == sizeof(buf) then buf[count] is an OOB write

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@WALLOFJUSTICE WALLOFJUSTICE merged commit 870bfa9 into TurningWheel:develop Sep 20, 2022
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.

2 participants