(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 2250 | | | static int dissect_PRINTER_INFO_2(tvbuff_t *tvb, int offset, |
| 2251 | | | packet_info *pinfo, proto_tree *tree, |
| 2252 | | | guint8 *drep) |
| 2253 | | | { |
| 2254 | | | guint32 devmode_offset, secdesc_offset; |
| 2255 | | | |
| 2256 | | | offset = dissect_spoolss_relstr( |
| 2257 | | | tvb, offset, pinfo, tree, drep, hf_servername, |
| 2258 | | | 0, NULL); |
| 2259 | | | |
| 2260 | | | offset = dissect_spoolss_relstr( |
| 2261 | | | tvb, offset, pinfo, tree, drep, hf_printername, |
| 2262 | | | 0, NULL); |
| 2263 | | | |
| 2264 | | | offset = dissect_spoolss_relstr( |
| 2265 | | | tvb, offset, pinfo, tree, drep, hf_sharename, |
| 2266 | | | 0, NULL); |
| 2267 | | | |
| 2268 | | | offset = dissect_spoolss_relstr( |
| 2269 | | | tvb, offset, pinfo, tree, drep, hf_portname, |
| 2270 | | | 0, NULL); |
| 2271 | | | |
| 2272 | | | offset = dissect_spoolss_relstr( |
| 2273 | | | tvb, offset, pinfo, tree, drep, hf_drivername, |
| 2274 | | | 0, NULL); |
| 2275 | | | |
| 2276 | | | offset = dissect_spoolss_relstr( |
| 2277 | | | tvb, offset, pinfo, tree, drep, , |
| 2278 | | | 0, NULL); |
| 2279 | | | |
| 2280 | | | offset = dissect_spoolss_relstr( |
| 2281 | | | tvb, offset, pinfo, tree, drep, hf_printerlocation, |
| 2282 | | | 0, NULL); |
| 2283 | | | |
| 2284 | | | offset = dissect_ndr_uint32( |
| 2285 | | | tvb, offset, pinfo, NULL, drep, hf_offset, |
| 2286 | [+] | | &devmode_offset); |
Event 1:
dissect_ndr_uint32() does not initialize devmode_offset. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 2287 | | | |
| 2288 | | | dissect_DEVMODE(tvb, devmode_offset - 4, pinfo, tree, drep); |
Uninitialized Variable
devmode_offset was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |