Bug 14311 - samba-4.12.0/source4/torture/rpc/spoolss.c:2127:invalidLifetime
Summary: samba-4.12.0/source4/torture/rpc/spoolss.c:2127:invalidLifetime
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Test infrastructure (show other bugs)
Version: 4.12.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 14:35 UTC by David Binderman
Modified: 2023-08-21 02:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2020-03-04 14:35:35 UTC
samba-4.12.0/source4/torture/rpc/spoolss.c:2127:37: error: Using object that points to local variable 'info8' that is out of scope. [invalidLifetime]

Source code is

   case 8: {
        struct spoolss_SetPrinterInfo8 info8;

        info8.devmode_ptr = 0;

        info_ctr.level = 8;
        info_ctr.info.info8 = &info8;

        break;
    }
Comment 1 Jo Sutton 2023-08-21 02:46:43 UTC
This was fixed in Samba 4.18 with commit 0dc5f807690baae002f5c35c920663cc6c3617e0.