Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Uninit issue #9398

Open
SoftSec-Tech opened this issue Sep 5, 2024 · 0 comments
Open

[Bug] Uninit issue #9398

SoftSec-Tech opened this issue Sep 5, 2024 · 0 comments
Labels
good first issue Good for newcomers 新手任务

Comments

@SoftSec-Tech
Copy link

RT-Thread Version

187e69a

Hardware Type/Architectures

stm32

Develop Toolchain

GCC

Describe the bug

  1. Uninit issue in line 440 https://github.com/RT-Thread/rt-thread/blob/master/bsp/stm32/libraries/HAL_Drivers/drivers/drv_gpio.c
  2. Detected by Static Analysis tool - StatiCode,
    rt-thready-defect1
    As in the screen shot, since there is the possibility that in step 7 - switch goes into default, so the GPIO_InitStruct.Mode is uninited, but it is used in the HAL_GPIO_INIT, thus caused an Uninit issue.

Other additional context

No response

@supperthomas supperthomas added the good first issue Good for newcomers 新手任务 label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers 新手任务
Projects
None yet
Development

No branches or pull requests

2 participants