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

Closed
SoftSec-Tech opened this issue Sep 5, 2024 · 1 comment
Closed

[Bug] Uninit issue #9398

SoftSec-Tech opened this issue Sep 5, 2024 · 1 comment
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

@mysterywolf
Copy link
Member

Thanks merged in #9532

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

3 participants