Skip to content

Fix IPv6 address printing bounds checks - #1357

Merged
allanli4 merged 1 commit into
FreeRTOS:mainfrom
allanli4:fix/inet-ntop6-terminator-space
Aug 6, 2026
Merged

Fix IPv6 address printing bounds checks#1357
allanli4 merged 1 commit into
FreeRTOS:mainfrom
allanli4:fix/inet-ntop6-terminator-space

Conversation

@allanli4

@allanli4 allanli4 commented Aug 5, 2026

Copy link
Copy Markdown
Member

Description

Fix IPv6 address printing bounds checks

Thank you XueDugu for reporting the issue.

Test Steps

  • Added test_FreeRTOS_inet_ntop6_MaxAddressExactSize to FreeRTOS_Sockets_IPv6_utest.c.
  • Added a CBMC proof test/cbmc/proofs/FreeRTOS_inet_ntop6/.

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

N/A

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

@allanli4
allanli4 force-pushed the fix/inet-ntop6-terminator-space branch from 6b2cc83 to d1f2ed1 Compare August 5, 2026 22:28
@allanli4
allanli4 force-pushed the fix/inet-ntop6-terminator-space branch from d1f2ed1 to 30cd089 Compare August 5, 2026 23:47
@allanli4 allanli4 changed the title Reserve space for the NUL terminator in FreeRTOS_inet_ntop6 Fix IPv6 address printing bounds checks Aug 5, 2026
@allanli4
allanli4 merged commit 4e95d07 into FreeRTOS:main Aug 6, 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