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

Submitted by:  Martin Liška <marxin>
Submitted on:  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: 
Release:  Git master Reproducibility:  None
Planned Release:  2.02

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

Fixed in 6cef7f6079550af3bf91dbff824398eaef08c3c5

Andrei Borzenkov <arvidjaar>
Project 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>
Project 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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.7