Skip to content

Coverity Scans reports available #63

Closed

Description

@LudovicRousseau

A long time ago I registered the hidapi project at Coverity Scans https://scan.coverity.com/faq
The project should be available at https://scan.coverity.com/projects/hidapi?tab=overview

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.

Activity

  1. Youw commented on Aug 11, 2019

    @Youw
    Member

    Sent request.

  2. LudovicRousseau commented on Aug 11, 2019

    @LudovicRousseau
    MemberAuthor

    Aprouved

  3. LudovicRousseau commented on Nov 1, 2019

    @LudovicRousseau
    MemberAuthor

    Coverity found a new bug in testgui/test.cpp:

    ** 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      
    
  4. Youw commented on Nov 2, 2019

    @Youw
    Member

    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.

  5. added
    build system/CI
    on Nov 29, 2019
  6. mcuee commented on May 2, 2023

    @mcuee
    Member
  7. Youw commented on May 2, 2023

    @Youw
    Member

    I think those are outdated.
    We don't have automatic build submissions (yet). Probably a good idea to setup some.

  8. LudovicRousseau commented on May 3, 2023

    @LudovicRousseau
    MemberAuthor

    I submitted a new scan with the current source code a few hours ago.
    The results are not yet available. Strange.

  9. Youw commented on May 3, 2023

    @Youw
    Member

    Interesting, the last uploaded snapshot I see was uploaded at 2022-04-03

  10. LudovicRousseau commented on May 3, 2023

    @LudovicRousseau
    MemberAuthor

    The status is still " Last Build Status: Running. Your build is currently being analyzed ".
    Maybe the server is overloaded.

  11. mcuee commented on May 4, 2023

    @mcuee
    Member

    Indeed it seems the server is overloaded. It still shows "Last Build Status: Running. Your build is currently being analyzed".

  12. mcuee commented on May 9, 2023

    @mcuee
    Member

    @LudovicRousseau

    Looks like the submission failed. Please help to submit a new build. Thanks.

  13. LudovicRousseau commented on May 9, 2023

    @LudovicRousseau
    MemberAuthor

    New build submitted.
    The coverity results are now visible.

  14. Youw commented on May 9, 2023

    @Youw
    Member

    Thanks.
    This time we did found some valid issues (error handling mostly).

  15. JoergAtGithub commented on May 9, 2023

    @JoergAtGithub
    Contributor

    I see only Linux files listed. Were the Windows files also scanned?

  16. LudovicRousseau commented on May 9, 2023

    @LudovicRousseau
    MemberAuthor

    @JoergAtGithub I did a GNU/Linux build only. I do not use Windows.
    Feel free to submit a Windows build.

  17. Youw commented on May 14, 2023

    @Youw
    Member

    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.

  18. Youw commented on May 21, 2023

    @Youw
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build system/CI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions