Jump to content
Eternal Lands Official Forums
Sign in to follow this  
trollson

Coverity analysis of ELC

Recommended Posts

I hope this might be of use...

 

Coverity analysis of elc

 

Updated 2005-10-07

 

The evaluation license I was using for this product has now expired, so there will be no further checks until/if we take the full product.

 

History

  1. 2005-09-13 : 48 bugs
  2. 2005-09-16 : 13 bugs
  3. 2005-09-23 : 5 bugs
  4. 2005-09-30 : 4 bugs (no new bugs)
  5. 2005-10-07 : Evaluation license expired! :)
Edited by trollson

Share this post


Link to post
Share on other sites

Nice toy. working on the results. It did manage to catch some possibly dangerous situations.

 

EDIT: I fixed nearly all of the bugs found by coverity. It's pretty decent, as far as i could see there was only one instance where it reported a bug where there was none.

Edited by Grum

Share this post


Link to post
Share on other sites

There are some 50 html files, interlinked, so it has to be posted as a bundle.

 

It will get false positives, but I have evaluated a lot of code analysers and it seems about the best so far (essentially static code). For example, I have run it on a our codebase which is several million lines.

 

This was an evaluation version, so was limited to ~10000 (?) paths through any function. It reached this on a couple of functions in this code!

 

Duh! I could have copied the uncompressed directory to my webspace and provided a link to that, for casual viewing, as well as the bundle, which may have satisfied Entropy's request.

Edited by trollson

Share this post


Link to post
Share on other sites

I'm happy to be able to say that this toy has also found the cause of the draegoni/blue cape bug. Once I've cleaned up actor_scripts.c and committed it, that should be fixed too.

Share this post


Link to post
Share on other sites
I'm happy to be able to say that this toy has also found the cause of the draegoni/blue cape bug.  Once I've cleaned up actor_scripts.c and committed it, that should be fixed too.

196533[/snapback]

sweet! (and I'm guessing the capes on the short people as well?)

Share this post


Link to post
Share on other sites
sweet! (and I'm guessing the capes on the short people as well?)

196546[/snapback]

Yes (at least dwarves look okay)

Share this post


Link to post
Share on other sites

Updated from CVS today

 

Coverity analysis of elc

 

Updated 2005-09-16

 

The potential bugs break down into the following categories:


  •  
  • 1 CHECKED_RETURN
     
  • 1 DEADCODE
     
  • 2 FORWARD_NULL
     
  • 1 NEGATIVE_RETURNS
     
  • 4 OVERRUN_STATIC
     
  • 1 PASS_BY_VALUE
     
  • 2 UNINIT
     
  • 1 UNUSED_VALUE
     

The

results

196243[/snapback]

Share this post


Link to post
Share on other sites
Updated 2005-09-23

 

The potential bugs break down into the following categories:


  •  
  • 1 CHECKED_RETURN
     
  • 1 DEADCODE
     
  • 2 OVERRUN_STATIC
     
  • 1 UNUSED_VALUE
     

The results

 

Only five "bugs" found, which may be false positives left from previous runs.

Share this post


Link to post
Share on other sites
Updated 2005-09-30

 

The potential bugs break down into the following categories:


  •  
  • 1 CHECKED_RETURN
     
  • 2 OVERRUN_STATIC
     
  • 1 UNUSED_VALUE
     

The results

 

No new bugs detected :)

 

I assume that the four remaining bugs are false positives (even the buffer overflows?).

Share this post


Link to post
Share on other sites
Updated 2005-10-07

 

The evaluation license I was using for this product has now expired, so there will be no further checks until/if we take the full product.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×