(/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); |
| 2287 | | | |
| 2288 | | | dissect_DEVMODE(tvb, devmode_offset - 4, pinfo, tree, drep); |
| 2289 | | | |
| 2290 | | | offset = dissect_spoolss_relstr( |
| 2291 | | | tvb, offset, pinfo, tree, drep, hf_sepfile, |
| 2292 | | | 0, NULL); |
| 2293 | | | |
| 2294 | | | offset = dissect_spoolss_relstr( |
| 2295 | | | tvb, offset, pinfo, tree, drep, hf_printprocessor, |
| 2296 | | | 0, NULL); |
| 2297 | | | |
| 2298 | | | offset = dissect_spoolss_relstr( |
| 2299 | | | tvb, offset, pinfo, tree, drep, hf_datatype, |
| 2300 | | | 0, NULL); |
| 2301 | | | |
| 2302 | | | offset = dissect_spoolss_relstr( |
| 2303 | | | tvb, offset, pinfo, tree, drep, hf_parameters, |
| 2304 | | | 0, NULL); |
| 2305 | | | |
| 2306 | | | |
| 2307 | | | |
| 2308 | | | |
| 2309 | | | |
| 2310 | | | |
| 2311 | | | |
| 2312 | | | |
| 2313 | | | |
| 2314 | | | offset = dissect_ndr_uint32( |
| 2315 | | | tvb, offset, pinfo, NULL, drep, hf_offset, |
| 2316 | [+] | | &secdesc_offset); |
Event 1:
dissect_ndr_uint32() does not initialize secdesc_offset. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 2317 | | | |
| 2318 | | | dissect_nt_sec_desc( |
| 2319 | | | tvb, secdesc_offset, pinfo, tree, drep, |
Uninitialized Variable
secdesc_offset was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| 2320 | | | FALSE, -1, |
| 2321 | | | &spoolss_printer_access_mask_info); |
| |