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

a minor null-ptr dereference issue #10

Open
asurati opened this issue Jul 24, 2019 · 1 comment
Open

a minor null-ptr dereference issue #10

asurati opened this issue Jul 24, 2019 · 1 comment

Comments

@asurati
Copy link

asurati commented Jul 24, 2019

initialize_fdt allocates a buffer to read the dtb file, like so:

p = malloc(st.st_size);

But, if p == NULL, kexec does not exit (it does print an error); instead, it moves on with reading of the file.

@asurati
Copy link
Author

asurati commented Jul 24, 2019

Likewise within dtc_resize for the failure to allocated fdt.

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