Skip to content

[WIP] Fix error in string header inclusion - #7

Merged
bsproger merged 1 commit into
mainfrom
copilot/fix-string-header-error
Mar 3, 2026
Merged

[WIP] Fix error in string header inclusion#7
bsproger merged 1 commit into
mainfrom
copilot/fix-string-header-error

Conversation

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown
  • Identify root cause: fortify-string memcpy warning in rwnx_rx.c and missing prototype for rwnx_get_countrycode_channels in rwnx_mod_params.c
  • Fix memcpy(pos, &he, sizeof(he)) → struct assignment in all rwnx_rx.c files:
    • src/USB/driver_fw/drivers/aic8800/aic8800_fdrv/rwnx_rx.c (line 1215 - exact match to error)
    • src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_rx.c (line 1161)
    • src/PCIE/driver_fw/driver/aic8800d80x2/aic8800_fdrv/rwnx_rx.c (line 1177)
    • src/PCIE/driver_fw/driver/deb/aic8800pcie/AIC8800/drivers/aic8800/aic8800_fdrv/rwnx_rx.c (line 1181)
    • src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_rx.c (line 1198)
  • Add missing prototype for rwnx_get_countrycode_channels in rwnx_mod_params.h files:
    • src/USB/driver_fw/drivers/aic8800/aic8800_fdrv/rwnx_mod_params.h (missing - exact match to error)
    • src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_mod_params.h (missing)
    • src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_mod_params.h (missing)
    • src/PCIE/driver_fw/driver/deb/aic8800pcie/AIC8800/drivers/aic8800/aic8800_fdrv/rwnx_mod_params.h (missing, added with forward declaration)
    • src/PCIE/driver_fw/driver/aic8800d80x2/aic8800_fdrv/rwnx_mod_params.h (already had prototype - no change needed)

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@bsproger
bsproger marked this pull request as ready for review March 3, 2026 19:06
@bsproger
bsproger merged commit c9ac800 into main Mar 3, 2026
0 of 2 checks passed
@bsproger
bsproger deleted the copilot/fix-string-header-error branch March 3, 2026 19:06
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.

2 participants