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

Description This report uses keywords associated with the watchdog timer to locate instances of calls to the watchdog timer. This is a service and not part of software review.
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


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

    18if ( 12case 11break; 1do

    Alpha Sort

    11break; 12case 1do 18if (

    Keywords Not Found

    else *\( else *\n
    do *\n while *\( for\( return\; watchdog WRITE_HWWD
    nnoonnee nnoonnee


    Details Report

    1 1 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/anylogevents.c
     1-15 function_lefirst
    1-37 function_lea
    1-63 . if ($stuff > $otherstuff) 1-73 function_leb
    1-92 . if ($stuff > $otherstuff) 1-108 . if ($stuff > $otherstuff) 1-147 . case one: 1-158 . break; 1-160 . case two: 1-163 . break; 1-176 function_led
    1-192 . case one: 1-195 . break; 1-197 . case two: 1-200 . break; 1-217 function_lee
    1-249 . if (A < B) 1-256 . if (A > B) 1-262 . if (A < = B) 1-268 . if (A > = B) 1-275 . if (A == B) 1-281 . if (A != B) 1-288 . if (A lt B) 1-295 . if (A gt B) 1-302 . if (A le B) 1-309 . if (A ge B) 1-316 . if (A eq B) 1-323 . if (A ne B) 1 1 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/anylogevents.c


    2 3 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/badcoding.c 2-16 function_first
    2-30 function_a
    2-59 function_b
    2-74 . if (veg) 2-92 . if ($stuff > $otherstuff) 2-141 function_c
    2-151 . case one: 2-159 . break; 2-161 . case two: 2-164 . break; 2-175 . case one: 2-178 . break; 2-180 . case two: 2-183 . break; 2-206 . break; 2-220 . case one: 2-225 . case two: 2-228 . break; 2-243 . case one: 2-255 . case two: 2-258 . break; 2-297 . if ($stuff > $otherstuff) 2-338 . do forever; 2-375 function_d
    2-509 function_e
    2 3 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/badcoding.c


    3 5 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/file.c 4-15 function_1
    4-40 function_2
    4-57 function_3
    3 5 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/file.c


    4 9 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/possclasscontent.c 6-15 function_1a
    6-46 function_2a
    4 9 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/possclasscontent.c


    5 10 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/toomanyfuncs.c 7-15 function_1
    7-41 function_2
    7-59 function_3
    7-83 function_4
    7-107 function_5
    7-131 function_6
    7-155 function_7
    7-179 function_8
    7-203 function_9
    7-227 function_10
    7-251 function_11
    7-275 function_12
    7-299 function_13
    7-323 function_14
    7-347 function_15
    7-369 function_16
    7-383 function_17
    5 10 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/toomanyfuncs.c


    6 11 Source: source/zz-iatdemo/zz-iatdemo-B1.0/pwr/toomanyloc.c 8-15 function_1b
    8-136 function_2b
    8-249 function_4b
    8-361 function_5b
    8-473 function_6b
    8-585 function_7b
    6 11 Result: result/source/zz-iatdemo/zz-iatdemo-B1.0/pwr/toomanyloc.c



    Settings

    Description 5

    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:26 end