Skip to content

Add Null checks to pucSrc in ucFlash_Write from iflash.c#5

Open
PwnVerse wants to merge 1 commit into
lovelyterry:masterfrom
PwnVerse:patch-1
Open

Add Null checks to pucSrc in ucFlash_Write from iflash.c#5
PwnVerse wants to merge 1 commit into
lovelyterry:masterfrom
PwnVerse:patch-1

Conversation

@PwnVerse

Copy link
Copy Markdown
Contributor

Description

If pucSrc is NULL or pointer to NULL, it can cause null pointer dereferences later in ucFlash_Compare and also when the data is copied in case FLASH_ProgramByte is called.

Patch

The patch adds null check to pucSrc to ensure the above scenario is handled gracefully.

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.

1 participant