Menu

#34 Support "Dead Memory" output

WontFix
nobody
None
Medium
Enhancement
2018-08-07
2012-04-08
Anonymous
No

Originally created by: linards....@gmail.com

What steps will reproduce the problem?
1. Launch tool
2. Configure tool ( with wizard ... )
3. Run Coverage...

What is the expected output? What do you see instead?

Ability to have seperate tehncial output about "dead memory" areas. The "dead memory" would stand for all the occupied memory bu variables, constants and other data structures, that are not:

- freed ( label "F" )
- used anywhere in the code ( label "U" )
- initialized ( labeled "I" )

What version of the product are you using? On what operating system?

RC1

Please provide any additional information below.

To add this feature, the following TODO could be used:

1. On each statement ( <if..then..[begin..end]> ; <for..to..do..[begin..end]> ; <repeat..unti> ; and others... ) record used variables into data structure;
2. After code is scanned / covered, perform static code scan and compare if the variables used ihn these statements mentioned above exposes the same variables declared in the unit / project. If not, provide new column in output labeled "Dead Memory", which would describe the main issue that memory is not anymore fully accessible for the program...
3. scan the code and combine the found issues in the form of array, that would make a columns fiel look like "F,U,I", saying, that the scanned code / statement block has got unfreed memory, uninitialized variables and also variables are unused ( declared but no value assigned ).

Discussion

  • Anonymous

    Anonymous - 2012-10-16

    Originally posted by: e.kotlya...@gmail.com

    (No comment was entered for this change.)

    Labels: -Type-Defect Type-Enhancement

     
  • Eugene Kotlyarov

    • Description has changed:

    Diff:

    
    
    • status: New --> WontFix
    • OpSys: -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.