bugGNU GRUB - Bugs: bug #50597, GCC7: may be used uninitialized in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50597: GCC7: may be used uninitialized in this function

Submitter:  Martin Liška <marxin>
Submitted:  Mon 20 Mar 2017 02:17:09 PM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  None
Planned Release:  2.02

Tue 04 Apr 2017 04:25:44 PM UTC, comment #2: 

Fixed in 6cef7f6079550af3bf91dbff824398eaef08c3c5

Andrei Borzenkov <arvidjaar>
Group Member
Mon 20 Mar 2017 06:17:08 PM UTC, comment #1: 

Yes, this is valid - it is used unitialized after the first iteration. Also we probably should allocate it, to save stack space. Post-2.02 cleanup. Thanks!

Andrei Borzenkov <arvidjaar>
Group Member
Mon 20 Mar 2017 02:17:09 PM UTC, original submission:  

grub-core/fs/btrfs.c: In function ‘read_sblock’:
grub-core/fs/btrfs.c:236:53: error: ‘sblock.this_device.size’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
       if (i && (grub_le_to_cpu64 (sblock.this_device.size)

Martin Liška <marxin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by marxin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-04 arvidjaar StatusNone Fixed
        Open/ClosedOpen Closed
        Planned Release2.03+ 2.02
    2017-03-20 arvidjaar Planned ReleaseNone 2.03+

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code