(/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)) { |
Event 2:
ipmi_getsaveddata() does not initialize pno. - This may be because of a failure case or other special case for ipmi_getsaveddata().
hide
|
|
 |
| 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)) { |
Uninitialized Variable
pno was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |