grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] Clean up unused values


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH 0/3] Clean up unused values
Date: Fri, 26 Jan 2024 01:31:35 +0300

I oppose to all 3 patches. These assignments are not redundant but keep an important invariant: the variable in question can be passed to free().
For this it needs to either be NULL or point to a valid allocated memory. In this code this ensures that we never double free even after code changes

Le sam. 20 janv. 2024, 05:53, Alec Brown <alec.r.brown@oracle.com> a écrit :
Coverity listed three unused value bugs in the GRUB. These patches help clean
up and remove these uneccessary bits of code.

The Coverity bugs being addressed are:
CID 428875
CID 428876
CID 428877

Alec Brown (3):
      fs/jfs.c: Clean up redundant code
      osdep/unix/getroot.c: Clean up redundant code
      loader/i386/multiboot_mbi.c: Clean up redundant code

 grub-core/fs/jfs.c                    | 1 -
 grub-core/loader/i386/multiboot_mbi.c | 2 +-
 grub-core/osdep/unix/getroot.c        | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]