Skip to content

fix: Off-by-1 enum terminator value - #10

Open
davidrea wants to merge 1 commit into
NordicSemiconductor:masterfrom
davidrea:patch-dfu-enum-off-by-1
Open

davidrea wants to merge 1 commit into
NordicSemiconductor:masterfrom
davidrea:patch-dfu-enum-off-by-1

Conversation

@davidrea

Copy link
Copy Markdown

It looks like the NRF_MESH_DFU_END_ERROR_BANK_AND_DESTINATION_OVERLAP enum value was added to nrf_mesh_dfu_end_t but the NRF_MESH_DFU_END_ERROR__LAST value not updated.

This should be a pretty benign error as the enum is only statically bounds-checked against the type range, but correcting it protects future runtime boundary checks from spurious errors.

@CLAassistant

CLAassistant commented Mar 11, 2021

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@peterhinson

Copy link
Copy Markdown

@davidrea - good catch!

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.

3 participants