pvm3.4.6 : pvm3.4.6 analysis 2 : Use After Free at cmds.c:499
|
|
| 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_444339 ap2' = aliases->a_link args' = av + 8 bytes_after(&$heap_444339)' = 24 $heap_444339' is allocated by malloc $heap_444339' is allocated bytes_before(&$heap_444339)' = 0 ((char*)&$heap_444339)[16]' = &$heap_444341 ((char*)&$heap_444339)[8]' = &$heap_444340 ((char*)&$heap_444339)[12]' = ac - 2 $heap_444340' = *av[1] bytes_after(&$heap_444340)' = strlen(av[1]) + 1 $heap_444340' is allocated by malloc $heap_444340' is allocated bytes_before(&$heap_444340)' = 0 strlen(&$heap_444340)' = strlen(av[1]) tocttou($heap_444340)' = tocttou(*av[1]) bytes_after(&$heap_444341)' = 4 * ac - 4 $heap_444341' is allocated by malloc $heap_444341' is allocated bytes_before(&$heap_444341)' = 0 name' = av[1] num' = -1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
