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

addMgaIniTime() Doesn't Check for Null #277

Open
nautalert opened this issue Aug 31, 2024 · 1 comment
Open

addMgaIniTime() Doesn't Check for Null #277

nautalert opened this issue Aug 31, 2024 · 1 comment
Assignees

Comments

@nautalert
Copy link

if pUPortMalloc() fails, NULL is not checked and memcpy crashes.

*pMgaDataOut = (UBX_U1*)pUPortMalloc(*iSize);
if (*pMgaDataOut == NULL)
   printk("NULL!!!\n");
@sakrubx sakrubx self-assigned this Sep 2, 2024
@sakrubx
Copy link
Contributor

sakrubx commented Sep 2, 2024

Oh great catch! Thank you for identifying this.

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

2 participants