(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-quake.c) |
| |
| 283 | | | dissect_quake_CCREP_PLAYER_INFO |
| 284 | | | (tvbuff_t *tvb, proto_tree *tree) |
| 285 | | | { |
| 286 | | | gint offset; |
| 287 | | | proto_item *ti; |
| 288 | | | guint32 colors; |
| 289 | | | guint32 color_shirt; |
| 290 | | | guint32 color_pants; |
| 291 | | | proto_item *colors_item; |
| 292 | | | proto_tree *colors_tree; |
| 293 | | | |
| 294 | | | offset = 0; |
| 295 | | | |
| 296 | | | if (tree) { |
Event 1:
Taking true branch. tree evaluates to true.
hide
|
|
| 297 | | | proto_tree_add_item(tree, hf_quake_CCREQ_PLAYER_INFO_player, |
| 298 | | | tvb, offset, 1, TRUE); |
Event 2:
!0 evaluates to true.
hide
|
|
| 299 | | | offset += 1; |
| 300 | | | |
| 301 | | | ti = proto_tree_add_item(tree, hf_quake_CCREP_PLAYER_INFO_name, |
Event 11:
ti is set to proto_tree_add_item(...), which evaluates to NULL. See related event 10.
hide
|
|
| 302 | [+] | | tvb, offset, -1, TRUE); |
Event 3:
!0 evaluates to true.
hide
|
|
 |
| 303 | [+] | | offset += proto_item_get_len(ti); |
Event 12:
ti, which evaluates to NULL, is passed to proto_item_get_len(). See related event 11.
hide
|
|
 |
| |