(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-aim-messaging.c) |
| |
| 468 | | | static int is_uuid_null(e_uuid_t uuid) |
| 469 | | | { |
| 470 | | | return (uuid.Data1 == 0) && |
| 471 | | | (uuid.Data2 == 0) && |
| 472 | | | (uuid.Data3 == 0) && |
| 473 | | | (uuid.Data4[0] == 0) && |
| 474 | | | (uuid.Data4[1] == 0) && |
Redundant Condition
uuid.Data4[1] == 0 always evaluates to false. This may be because: - There is a constant assignment to one or more of the variables involved.
- An earlier conditional statement has already ensured that uuid.Data4[1] == 0 cannot be true.
- A crashing bug occurs on every path where uuid.Data4[1] == 0 could have evaluated to true. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 475 | | | (uuid.Data4[2] == 0) && |
| 476 | | | (uuid.Data4[3] == 0) && |
| 477 | | | (uuid.Data4[4] == 0) && |
| 478 | | | (uuid.Data4[5] == 0) && |
| 479 | | | (uuid.Data4[6] == 0) && |
| 480 | | | (uuid.Data4[7] == 0); |
| 481 | | | } |
| |