pvm3.4.6 : pvm3.4.6 analysis 2 : Null Pointer Dereference at cmds.c:501
|
|
| Legend | [ X ] |
|---|---|
|
Warning Location
Contributes Parse Error Other Warning Two or More Loop Iterations On Execution Path Comment Macro Preprocessor Include Keyword Preprocessed Away | |
| Legend | ||
|---|---|---|
| Warning Location | Contributes | Parse Error |
| Other Warning | Two or More Loop Iterations | On Execution Path |
| Comment | Macro | Preprocessor |
| Include | Keyword | Preprocessed Away |
| Source | Language: C | Show LegendHide Legend | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Preconditions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name >= 3 aliases->a_link->a_num >= 1 *aliases->a_link->a_name = ((char*)*num)[4] strlen(aliases->a_link->a_name) = strlen(((char*)num)[4]) aliases->a_link != aliases |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Postconditions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
aliases->a_link->a_link->a_rlink' = aliases->a_link->a_rlink aliases->a_link->a_rlink' = 0 aliases->a_link->a_num' = -1 *aliases->a_link->a_args' is freed aliases->a_link->a_rlink->a_link' = aliases->a_link->a_link *aliases->a_link->a_name' is freed aliases->a_link->a_link' = 0 *aliases->a_link' is freed ap' = aliases->a_link ap' = &$heap_444639 ap2' = aliases->a_link args' = av + 8 $heap_444639' = aliases->a_link bytes_after(&$heap_444639)' = 24 $heap_444639' is allocated by malloc $heap_444639' is allocated bytes_before(&$heap_444639)' = 0 ((char*)&$heap_444639)[16]' = &$heap_444641 ((char*)&$heap_444639)[4]' = 0 ((char*)&$heap_444639)[8]' = &$heap_444640 ((char*)&$heap_444639)[12]' = ac - 2 $heap_444640' = *av[1] bytes_after(&$heap_444640)' = strlen(av[1]) + 1 $heap_444640' is allocated by malloc $heap_444640' is allocated bytes_before(&$heap_444640)' = 0 strlen(&$heap_444640)' = strlen(av[1]) tocttou($heap_444640)' = tocttou(*av[1]) bytes_after(&$heap_444641)' = 4 * ac - 4 $heap_444641' is allocated by malloc $heap_444641' is allocated bytes_before(&$heap_444641)' = 0 name' = av[1] num' = -1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
