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

mtd: check the return value of malloc and pread #3

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

asd333111
Copy link

Check the return value of malloc and pread in case they fail.

Check the return value of malloc and pread in case they fail.

Signed-off-by: Qiyuan Zhang <[email protected]>
@testuser7
Copy link
Owner

Should these changes be included in the main PR?

@asd333111
Copy link
Author

Yes, they should be included. These changes gracefully handle errors in malloc and pread. When failures happen in those functions, it shows meaningful error messages instead of program crashes.

@testuser7 testuser7 merged commit b5d2f03 into testuser7:mx4300 Aug 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants