Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc-spoolss.c:2319

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_PRINTER_INFO_2

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c)expand/collapse
Show more  
 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, hf_printercomment,
 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           * XXX - what *is* the length of this security descriptor?
 2308           * "prs_PRINTER_INFO_2()" is passed to "defer_ptr()", but 
 2309           * "defer_ptr" takes, as an argument, a function with a
 2310           * different calling sequence from "prs_PRINTER_INFO_2()",
 2311           * lacking the "len" argument, so that won't work.
 2312           */
 2313   
 2314          offset = dissect_ndr_uint32(
 2315                  tvb, offset, pinfo, NULL, drep, hf_offset,
 2316[+]                 &secdesc_offset);
 2317   
 2318          dissect_nt_sec_desc(
 2319                  tvb, secdesc_offset, pinfo, tree, drep,  
 2320                  FALSE, -1,
 2321                  &spoolss_printer_access_mask_info);
Show more  




Change Warning 2102.35148 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: