(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ipmi-transport.c) |
| |
| 1845 | | | rs11(tvbuff_t *tvb, proto_tree *tree) |
| 1846 | | | { |
| 1847 | | | static const int *byte1[] = { &hf_ipmi_trn_11_rev_present, &hf_ipmi_trn_11_rev_compat, NULL }; |
| 1848 | | | proto_item *ti; |
| 1849 | | | tvbuff_t *next; |
| 1850 | | | const char *desc; |
| 1851 | | | guint32 pno, req; |
| 1852 | | | |
| 1853 | | | proto_tree_add_bitmask_text(tree, tvb, 0, 1, NULL, NULL, |
| 1854 | | | ett_ipmi_trn_11_rev, byte1, TRUE, 0); |
Event 1:
!0 evaluates to true.
hide
|
|
| 1855 | | | |
| 1856 | [+] | | if (!ipmi_getsaveddata(0, &pno) && !ipmi_getsaveddata(1, &req)) { |
 |
| 1857 | | | |
| 1858 | | | if (tvb_length(tvb) > 1) { |
| 1859 | | | proto_tree_add_item(tree, hf_ipmi_trn_11_param_data, tvb, 1, tvb_length(tvb) - 1, TRUE); |
| 1860 | | | }; |
| 1861 | | | return; |
| 1862 | | | } |
| 1863 | | | |
| 1864 | | | if (pno < array_length(serial_options)) { |
Event 6:
Taking true branch. pno < sizeof( serial_options ) / sizeof( serial_options[0] ) evaluates to true.
hide
|
|
| 1865 | | | desc = serial_options[pno].name; |
| 1866 | | | } else if (pno >= 0xC0) { |
| 1867 | | | desc = "OEM"; |
| 1868 | | | } else { |
| 1869 | | | desc = "Reserved"; |
| 1870 | | | } |
| 1871 | | | |
| 1872 | | | if ((req & 0x80) && tvb_length(tvb) > 1) { |
| |