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

PVS-Studio: 71 issues (IDFGH-4626) #6440

Closed
AndreyKarpov opened this issue Jan 20, 2021 · 5 comments
Closed

PVS-Studio: 71 issues (IDFGH-4626) #6440

AndreyKarpov opened this issue Jan 20, 2021 · 5 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@AndreyKarpov
Copy link

One of our readers recommended paying heed to the Espressif IoT Development Framework. He found an error in the project code and asked if the PVS-Studio static analyzer could find it. The analyzer can't detect this specific error so far, but it managed to spot many others: https://www.viva64.com/en/b/0790/

@github-actions github-actions bot changed the title PVS-Studio: 71 issues PVS-Studio: 71 issues (IDFGH-4626) Jan 20, 2021
@megazhuk
Copy link

How to get more attention to this issues?
I think this is important, since developers can fix 71 errors at once in 1 day.

@projectgus
Copy link
Contributor

Hi @AndreyKarpov,

Thanks for opening the issue to let us know about your analysis work and blog post. We're in the process of analyzing your results and dividing the tasks up between the various subsystems that are affected. This issue will be updated as soon as we start applying fixes.

In a few cases it seems like the analyser may have returned some false positives. For example, in the case of the static function _mdns_dup_interface "array index out of bounds", the caller has always pre-checked the result of _mdns_get_other_if() before calling _mdns_dup_interface()).

In other cases your analysis has clearly found bugs, so thank you again for bringing them to our attention.

projectgus pushed a commit that referenced this issue Feb 10, 2021
projectgus pushed a commit that referenced this issue Feb 10, 2021
david-cermak added a commit to espressif/esp-mqtt that referenced this issue Feb 11, 2021
espressif-bot pushed a commit that referenced this issue Mar 7, 2021
espressif-bot pushed a commit that referenced this issue Mar 7, 2021
espressif-bot pushed a commit that referenced this issue Mar 9, 2021
espressif-bot pushed a commit that referenced this issue Mar 9, 2021
espressif-bot pushed a commit that referenced this issue Mar 11, 2021
espressif-bot pushed a commit that referenced this issue Mar 11, 2021
projectgus pushed a commit that referenced this issue Mar 12, 2021
espressif-bot pushed a commit that referenced this issue Mar 12, 2021
Removed leftover code-paths that were never taken. Upstream freertos uses
vTaskSuspendAll() and xTaskResumeAll(), and therefor check if the task already
yielded.

In the IDF port of freertos we use critcal sections instead, so xAlreadyYielded
will never be set.

Partially addresses #6440
espressif-bot pushed a commit that referenced this issue Mar 12, 2021
espressif-bot pushed a commit that referenced this issue Apr 27, 2021
@zikalino zikalino self-assigned this Mar 8, 2022
@zikalino
Copy link
Collaborator

zikalino commented Mar 8, 2022

For some reason this issue was forgotten and all the problems should be reviewed properly.

espressif-bot pushed a commit that referenced this issue Mar 18, 2022
Reported in #6440

The issue could occur if esp_console_config_t::hint_color
was set to -1.
@igrr
Copy link
Member

igrr commented Mar 18, 2022

wpa_supplicant fixes applied in 6da52cf (forgot to add a link back to this issue)

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally labels Mar 22, 2022
@igrr
Copy link
Member

igrr commented Mar 22, 2022

The final fixes for driver, essl and hal have been merged and will be synced to Github soon.
Thanks again for finding and explaining these issues in detail!

david-cermak pushed a commit to david-cermak/esp-protocols that referenced this issue Mar 24, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue Mar 25, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue Apr 8, 2022
espressif-bot pushed a commit that referenced this issue Apr 12, 2022
Source code taken from release archives in
https://github.com/argtable/argtable3/releases/tag/v3.2.1.52f24e5

Applied dos2unix to all files.
Removed trailing whitespace with the pre-commit hook.

Resolves some of the static analysis issues reported in
#6440
(mallocs are replaced by xmalloc wrapper which panics on failed
allocations)
espressif-bot pushed a commit that referenced this issue Apr 24, 2022
Reported in #6440

The issue could occur if esp_console_config_t::hint_color
was set to -1.
espressif-bot pushed a commit that referenced this issue Apr 24, 2022
Reported in #6440

The issue could occur if esp_console_config_t::hint_color
was set to -1.
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue May 17, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue May 27, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue May 27, 2022
gabsuren pushed a commit to gabsuren/esp-protocols-1 that referenced this issue May 27, 2022
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-protocols that referenced this issue Jun 30, 2022
euripedesrocha pushed a commit to euripedesrocha/esp-protocols that referenced this issue Oct 17, 2022
espressif-bot pushed a commit that referenced this issue Nov 11, 2022
Source code taken from release archives in
https://github.com/argtable/argtable3/releases/tag/v3.2.1.52f24e5

Applied dos2unix to all files.
Removed trailing whitespace with the pre-commit hook.

Resolves some of the static analysis issues reported in
#6440
(mallocs are replaced by xmalloc wrapper which panics on failed
allocations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

6 participants