Logevents v111003 analysis/zz-iatdemo-B1.0 s_locked-error-handling.html C:\project-iat\inst\perl.exe 5.006001

Description This is also a legacy report. Many of the IAT automatic detectors in the stat-problems report started with this report. This report extracts all the decisions and certain keywords such as calls to software error. Use the details area of this report to determine if there are nesting problems or failures to call software error. If web enabled try re-running the report with other keywords. New potential issues may be surfaced.
AnalysisComment
KeywordsThis analysis shows the user selected keywords that were extracted from the original source code. There are also predefined keywords that are seperately reported by the tool in the Problems and Details analysis.
DetailsThis analysis shows the details from the original source code that are extracted from the search requests and internal error, warning, and caution settings. It also includes software metrics on a module basis.

Other Analysis Reports . Original Source Code . Instrumented Source Code . Help

12/09/2003 13:47:24

Locked Files Lock Date: 11/20/2003
These files are not subjected to analysis. The lock date points to a formal release with a previous analysis.

NotLocked 11/20/2003 15:10:22 source/zz-iatdemo/zz-iatdemo-B1.0/pwr/anylogevents.c
Locked 11/19/2003 16:8:33 source/zz-iatdemo/zz-iatdemo-B1.0/pwr/badcoding.c



Keyword Stats

Good General Practices

  • use new and delete instead of malloc and free
  • do not use ?:
  • if a func has no parameters, use () instead of (void)
  • do not use goto
  • avoid declaring member variable with 'mutable' keyword
  • avoid declaring local variables with 'register' keyword
  • avoid declaring local variables with 'static' keyword
  • avoid do statements - potential endless loops
  • look for unusual and pertinent keywords
  • consistency is nice but not mandated
  • provide if with else
  • Good Security Practices

  • the bad fixed keywords are shown elsewhere
  • terminate case with break;
  • for each switch, provide default:
  • default: with security critical data should transfer to SwError
  • if else sequences with security critical data terminate in SwError
  • s_ files with if else sequences in many cases terminate in SwError
  • terminate other as identified if else sequences with SwError
  • look for undefined error codes in SwError
  • look for multiple uses of the same error codes
  • malloc should not be used on security critical data
  • if malloc is used on security critical data crypto zeroize before free
  • Number Sort

    25LE SV 15if ( 6LOC EVENT 2DEBUG EVENT 2SwError 1HMI EVENT

    Alpha Sort

    2DEBUG EVENT 1HMI EVENT 25LE SV 6LOC EVENT 2SwError 15if (

    Keywords Not Found

    else\s*\( else\s*\n nnoonnee nnoonnee gNoteError


    Details Report

    1 1 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/anylogevents.c
     1-15 function_lefirst
    1-24 /* LE SV TOC-001 completed the orange portion of req 1*/ 1-37 function_lea
    1-61 /* LE SV TOC-001 completed the blue portion of req 1*/ 1-63 . if ($stuff > $otherstuff) 1-65 /* LE SV TOC-002 completed req 2*/ 1-73 function_leb
    1-91 /* LE SV TOC-003 starting req 3 - this is a huge loop 3*/ 1-92 . if ($stuff > $otherstuff) 1-96 /* LE SV TOC-003 req 3 - but you can log in loop and filter during test */ 1-98 /* LE SV TOC-003 finished req 3 - so its ok to bracket huge loops */ 1-107 /* LE SV TOC-004 starting req 4 - this is a realtime loop */ 1-108 . if ($stuff > $otherstuff) 1-112 /* LE SV TOC-004 req - but you can log in loop and filter during test 3*/ 1-114 /* LE SV TOC-004 finished req 4 - so its ok to bracket real time loops */ 1-132 /* LE SV TOC-004 completed req 4 its ok to no place a req in the exact spot where its completed */ 1-133 /* LE SV TOC-005 completed req 5 stuff */ 1-150 /* LE SV TOC-006 completed req 6 */ 1-151 /* LE SV TOC-007 completed req 7 */ 1-152 /* LE SV TOC-008 completed req 8 */ 1-167 /* LE SV TOC-010 this is divide by zero error */ 1-168 . SwError; 1-176 function_led
    1-204 . SwError; 1-208 /* LE SV TOC-011 completed req 11 stuff */ 1-209 /* LE SV TOC-012 completed req 12 stuff */ 1-210 /* LE SV TOC-013 completed req 13 stuff */ 1-211 /* LE SV TOC-014 completed req 14 stuff */ 1-217 function_lee
    1-231 /* LE SV TOC-015 started req 15 stuff - pick start or end but not both */ 1-232 /* LE SV TOC-016 started req 16 stuff - pick start or end but not both */ 1-233 /* LE SV TOC-017 started req 17 stuff - pick start or end but not both */ 1-249 . if (A < B) 1-251 . . . HMI EVENT 1 . HMI_CALL . HMI HMI_CALL (Happy Face); 1-256 . if (A > B) 1-262 . if (A < = B) 1-268 . if (A > = B) 1-270 . . . LOC EVENT 1 . any + loc . log = any + loc(aslong_as_there_is_semicolon); 1-275 . if (A == B) 1-281 . if (A != B) 1-283 . . . LOC EVENT 2 . any + loc . log = any + loc; 1-288 . if (A lt B) 1-290 . . . LOC EVENT 3 . any+loc . log = any+loc; 1-295 . if (A gt B) 1-297 . . . LOC EVENT 4 . any-loc . log = any-loc*(some+more+stuff); 1-302 . if (A le B) 1-304 . . . LOC EVENT 5 . any*loc . log = any*loc; 1-309 . if (A ge B) 1-311 . . . LOC EVENT 6 . any/loc . log = any/loc(nice_broad_pattern); 1-316 . if (A eq B) 1-318 . . . DEBUG EVENT 1 . . . PURGE_BUFFER 1-323 . if (A ne B) 1-325 . . . DEBUG EVENT 2 . . . PURGE_BUFFER 1-330 /* LE SV TOC-015 completed req 15 stuff */ 1-331 /* LE SV TOC-016 completed req 16 stuff */ 1-332 /* LE SV TOC-017 completed req 17 stuff */ 1 1 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/anylogevents.c



    Settings

    Description 7

    Master Directories
    Project Instrumentation Test
    Source Result Analysis
    Metrics

    Report Markings
    Report Marking
    Highest Code Classification
    Lowest Code Classification
    Classified Keywords

    Headers
    C Header
    H Header
    asm Header

    File Controls
    Assembly Extensions
    Access Files
    Ignore Files
    Paths
    File Path
    Src Paths (websever /~iat no websever ../../)
    URL (websever /~iat no websever ../../ dos is blank)

    Source Dir Path
    Result Dir Path
    Analysis Dir Path(no websever setting ../ft-red-B1B2D6_Ry)
    Analysis Report Name
    Files
    toc file bfw file hmi file
    toc html bfw html

    General Settings
    CPCs
    1 2 3 4 5 6 7 Colors

    Log Event Patterns
    SV Events case Insensitive
    Filter SV Events case Insensitive (e.g. traffic)
    Filter Files case Insensitive
    DB Events case Sensitive
    HMI Events case Sensitive
    LOC Events case Sensitive
    Filter LOC Events (e.g. traffic)

    Table Driven Functions used by uncalled functions detector


    Fixed Keywords case insensitive
    C
    H
    Assembly

    Keywords case insensitive
    find 1
    find 2
    find 3
    find 4
    find 5

    ignore lines

    Keyword Window

    Hamming Patterns


    Log Events
    SV Start DB Start HMI Start LOC Start
    Instrument Source LE Summary Auto Trace Fix LE English

    Show in Details Report
    Abstract SV REQUIRED Full Header All SourceCode Only SVCV src
    Comments CV REQUIRED Rquirements Functions Show Only Affected Files Analyze Only LE SV

    Reports
    Control Menu Keywords Stats Metrics Ham Values Details Problem Summaries Problem Descriptions Compare

    Reports - Automatic Detectors Default Problems Locked Files Date (e.g. 01/05/2003)
    Fatal Printf C Headers H Headers ASM Headers
    Class SV Marking CV Marking Keywords Code Keywords Prologues
    No Curly Braces ifdef Switch Default's Default Error Case Break
    Nested Switches Stacked Cases Calling Rules No Error Exit ?: operator
    Func/File LOC/File Line Length < 5 LOC/Func > 100 LOC/Func
    Uncalled Func's Dead Code Fuzzy Log Events ++/-- in if, else, while do Loops
    malloc free Re-Casting goto No Func Header

    Regression noise reduction for Automatic Detectors - must run regression.pl first
    new files
    mod files

    Metrics Baseline Accessed
    Metrics Saved (enable stats)

    Hide Controls Show Checked Summary Checked Details Not Checked All

    done
    12/09/2003 13:47:24 start
    12/09/2003 13:47:24 end