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: NoneSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: 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
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by marxin (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 04 Apr 2017 04:25:44 PM UTCarvidjaarStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Planned Release2.03+=>2.02
    Mon 20 Mar 2017 06:17:08 PM UTCarvidjaarPlanned ReleaseNone=>2.03+

    Back to the top


    Powered by Savane 3.1-cleanup1