Skip to content

[WiFiPAF] Fix the potential vulnerability issues. (backport #43031)#72371

Open
mergify[bot] wants to merge 1 commit into
v1.4.2-branchfrom
mergify/bp/v1.4.2-branch/pr-43031
Open

[WiFiPAF] Fix the potential vulnerability issues. (backport #43031)#72371
mergify[bot] wants to merge 1 commit into
v1.4.2-branchfrom
mergify/bp/v1.4.2-branch/pr-43031

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Jun 3, 2026

Summary

Fix the potential issues:
- underflow issue if mWindowSize is small (or equal to 0)
- Memory leak in ReorderQueue if connection drops unexpectedly

Testing

  • Linux devices can be paired successfully by using wifipaf.
  • No problems in running the unit-tests

This is an automatic backport of pull request #43031 done by [Mergify](https://mergify.com).

* Fix the potential vulnerability issues.
    - underflow issue if mWindowSize is small (or 0)
    - Memory leak in ReorderQueue if connection drops unexpectedly

Signed-off-by: Lo,Chin-Ran <chin-ran.lo@nxp.com>

* Restyled by clang-format

* Update src/wifipaf/WiFiPAFConfig.h

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Refine the comment based on Gemini’s suggested wording

Signed-off-by: Lo,Chin-Ran <chin-ran.lo@nxp.com>

* Add more information to the new defined macro
Replace #error with static_assert

Signed-off-by: Lo,Chin-Ran <chin-ran.lo@nxp.com>

* Restyled by clang-format

---------

Signed-off-by: Lo,Chin-Ran <chin-ran.lo@nxp.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Amine Alami <43780877+Alami-Amine@users.noreply.github.com>
(cherry picked from commit c3480ff)
@mergify mergify Bot added the backport-v1.4.2-branch Backport PR targeting v1.4.2-branch, created by Mergify label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v1.4.2-branch Backport PR targeting v1.4.2-branch, created by Mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant