You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can add any other member of this hidapi project to have access to the Coverity Scans results. Just connect on Coverity Scans and ask for an access to the hidapi results.
For now only 2 issues are reported by Coverity Scans.
** CID 1019782: Uninitialized members (UNINIT_CTOR)
/testgui/test.cpp: 73 in MainWindow::MainWindow()()
________________________________________________________________________________________________________
*** CID 1019782: Uninitialized members (UNINIT_CTOR)
/testgui/test.cpp: 73 in MainWindow::MainWindow()()
67 hid_device *connected_device;
68 size_t getDataFromTextField(FXTextField *tf, char *buf, size_t len);
69 int getLengthFromTextField(FXTextField *tf);
70
71
72 protected:
>>> CID 1019782: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "connected_device" is not initialized in this constructor nor in any functions that it calls.
73 MainWindow() {};
74 public:
75 MainWindow(FXApp *a);
76 ~MainWindow();
77 virtual void create();
78
I've prepared an on-demand Github Actions job to run and submit Coverity report for 3 platforms (Windows, Linux, macOS).
But it is not exactly usable yet: each submission overrides the previous one, so even if the job is executed - the results only for one platform will be available (whichever runs last).
Splitting into 3 different jobs for each platform is not exactly a solution, since still only one report will be available at the time, and what I want to achieve - a combiner report for all HIDAPI sources for all platforms, to track all issues alltogether on Coverity Web UI.
I'll try to get it done some time this week.
Meanwhile I've manually executed all jobs on all platforms against current master and created tickets for each issue found by Coverity.
Since #557 is merged, we have a single multi-platform job to submit Coverity scans for all platforms of HIDAPI. (With fixed issues I've described in my prev message.)
Activity
Youw commentedon Aug 11, 2019
Sent request.
LudovicRousseau commentedon Aug 11, 2019
Aprouved
LudovicRousseau commentedon Nov 1, 2019
Coverity found a new bug in
testgui/test.cpp:Youw commentedon Nov 2, 2019
Thanks for catching it.
This is just a test app, not a part of any critical implementation.
Will have a fix for it as soon as someone have a chance to get his hands to it.
mcuee commentedon May 2, 2023
https://scan.coverity.com/projects/hidapi?tab=overview
Looks like there are two outstanding issues.
Youw commentedon May 2, 2023
I think those are outdated.
We don't have automatic build submissions (yet). Probably a good idea to setup some.
LudovicRousseau commentedon May 3, 2023
I submitted a new scan with the current source code a few hours ago.
The results are not yet available. Strange.
Youw commentedon May 3, 2023
Interesting, the last uploaded snapshot I see was uploaded at 2022-04-03
LudovicRousseau commentedon May 3, 2023
The status is still " Last Build Status: Running. Your build is currently being analyzed ".
Maybe the server is overloaded.
mcuee commentedon May 4, 2023
Indeed it seems the server is overloaded. It still shows "Last Build Status: Running. Your build is currently being analyzed".
mcuee commentedon May 9, 2023
@LudovicRousseau
Looks like the submission failed. Please help to submit a new build. Thanks.
LudovicRousseau commentedon May 9, 2023
New build submitted.
The coverity results are now visible.
Youw commentedon May 9, 2023
Thanks.
This time we did found some valid issues (error handling mostly).
JoergAtGithub commentedon May 9, 2023
I see only Linux files listed. Were the Windows files also scanned?
LudovicRousseau commentedon May 9, 2023
@JoergAtGithub I did a GNU/Linux build only. I do not use Windows.
Feel free to submit a Windows build.
Youw commentedon May 14, 2023
I've prepared an on-demand Github Actions job to run and submit Coverity report for 3 platforms (Windows, Linux, macOS).
But it is not exactly usable yet: each submission overrides the previous one, so even if the job is executed - the results only for one platform will be available (whichever runs last).
Splitting into 3 different jobs for each platform is not exactly a solution, since still only one report will be available at the time, and what I want to achieve - a combiner report for all HIDAPI sources for all platforms, to track all issues alltogether on Coverity Web UI.
I'll try to get it done some time this week.
Meanwhile I've manually executed all jobs on all platforms against current master and created tickets for each issue found by Coverity.
Youw commentedon May 21, 2023
Since #557 is merged, we have a single multi-platform job to submit Coverity scans for all platforms of HIDAPI. (With fixed issues I've described in my prev message.)
#558 to not forget about those checks.
That being said, I think we can safely close this ticket.