(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fileexp.c) |
| |
| 3455 | | | fileexp_dissect_rename_resp |
| 3456 | | | (tvbuff_t * |
| 3457 | | | tvb, int offset, packet_info * pinfo, proto_tree * tree, guint8 *drep) |
| 3458 | | | { |
| 3459 | | | dcerpc_info *di; |
| 3460 | | | |
| 3461 | | | di = pinfo->private_data; |
| 3462 | | | if (di->conformant_run) |
| 3463 | | | { |
| 3464 | | | return offset; |
| 3465 | | | } |
| 3466 | | | |
| 3467 | | | |
| 3468 | | | |
| 3469 | | | |
| 3470 | | | |
| 3471 | | | |
| 3472 | | | |
| 3473 | | | |
| 3474 | | | |
| 3475 | | | |
| 3476 | | | |
| 3477 | | | offset = |
| 3478 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_fetchstatus, |
| 3479 | | | NDR_POINTER_REF, "FetchStatus: ", -1); |
| 3480 | | | offset = |
| 3481 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_fetchstatus, |
| 3482 | | | NDR_POINTER_REF, "FetchStatus: ", -1); |
| 3483 | | | offset = |
| 3484 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_afsFid, |
| 3485 | | | NDR_POINTER_REF, "afsFid: ", -1); |
| 3486 | | | offset = |
| 3487 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_fetchstatus, |
| 3488 | | | NDR_POINTER_REF, "FetchStatus: ", -1); |
| 3489 | | | offset = |
| 3490 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_afsFid, |
| 3491 | | | NDR_POINTER_REF, "afsFid: ", -1); |
| 3492 | | | |
| 3493 | | | offset = |
| 3494 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_fetchstatus, |
| 3495 | | | NDR_POINTER_REF, "FetchStatus: ", -1); |
| 3496 | | | |
| 3497 | | | offset = |
| 3498 | | | dissect_ndr_pointer (tvb, offset, pinfo, tree, drep, dissect_volsync, |
| 3499 | | | NDR_POINTER_REF, "VolSync: ", -1); |
| 3500 | | | MACRO_ST_CLEAR("Rename reply");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-fileexp.c |
| |
324 | #define MACRO_ST_CLEAR(name) \ |
325 | { \ |
326 | guint32 st; \ |
327 | const char *st_str; \ |
328 | offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_error_st, &st); \ |
329 | st_str = val_to_str (st, dce_error_vals, "%u"); \ |
330 | if (st){ \ |
331 | if (check_col (pinfo->cinfo, COL_INFO)) \ |
332 | col_add_fstr (pinfo->cinfo, COL_INFO, "%s st:%s ", name, st_str); \ |
333 | }else{ \ |
334 | if (check_col (pinfo->cinfo, COL_INFO)) \ |
335 | col_append_fstr (pinfo->cinfo, COL_INFO, " st:%s ", st_str); \ |
336 | } \ |
337 | } |
| |
|
Ignored Return Value
The return value of val_to_str() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of val_to_str() is checked 98% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt val_to_str() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events
Event 2:
Taking false branch. st evaluates to false.
hide
Event 3:
Skipping " if". check_col(...) evaluates to false.
hide
|
|
| 3501 | | | return offset; |
| 3502 | | | } |
| |