Skip to content

Suppress MISRA 14.3 finding in ARP buffer allocation#1333

Merged
patrzhan merged 1 commit intoFreeRTOS:mainfrom
patrzhan:dev/cov
Apr 17, 2026
Merged

Suppress MISRA 14.3 finding in ARP buffer allocation#1333
patrzhan merged 1 commit intoFreeRTOS:mainfrom
patrzhan:dev/cov

Conversation

@patrzhan
Copy link
Copy Markdown
Member

Define arpOUTPUT_REQUEST_BUFFER_SIZE to select the larger of sizeof(ARPPacket_t) and ipconfigETHERNET_MINIMUM_PACKET_BYTES at compile time, and use it in FreeRTOS_OutputARPRequest_Multi().

Description

Fixes coverity finding

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@patrzhan patrzhan force-pushed the dev/cov branch 3 times, most recently from dcd3ec9 to 999885c Compare April 17, 2026 18:11
@patrzhan patrzhan changed the title Resolve MISRA 14.3 finding in ARP buffer allocation Suppress MISRA 14.3 finding in ARP buffer allocation Apr 17, 2026
archigup
archigup previously approved these changes Apr 17, 2026
Move the buffer size ternary into a named macro
(arpOUTPUT_REQUEST_BUFFER_SIZE) with a coverity suppression comment.
The expression compares sizeof against a configuration constant and is
invariant for a given build but varies across user configurations.
@patrzhan patrzhan enabled auto-merge (squash) April 17, 2026 22:20
@patrzhan patrzhan merged commit ef50082 into FreeRTOS:main Apr 17, 2026
10 checks passed
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