All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix GCC 12 build error
@ 2022-03-17  6:43 Michael Chang
  2022-03-17  6:43 ` [PATCH 1/3] mkimage: Fix dangling pointer may be used error Michael Chang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michael Chang @ 2022-03-17  6:43 UTC (permalink / raw)
  To: grub-devel

The tested gcc version is:

 abuild@mazu:~> gcc --version
 gcc (SUSE Linux) 12.0.1 20220307 (experimental) [revision 40c1d4a07e5798c01e4364336c9617550744861d]
 Copyright (C) 2022 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Although it may not catch all build errors as there are quite many
combinations of cpu architecture and platform which grub supports. The
work is as far as I can get right now and I'd like to have them reviewed
before anyone running into similar problems.

Thanks,
Michael

Michael Chang (3):
  mkimage: Fix dangling pointer may be used error
  Fix -Werror=array-bounds array subscript 0 is outside array bounds
  reed_solomon: Fix array subscript 0 is outside array bounds

 grub-core/bus/cs5536.c                |  4 ++--
 grub-core/commands/acpi.c             |  4 ++--
 grub-core/commands/efi/loadbios.c     |  9 +++++----
 grub-core/commands/i386/pc/drivemap.c |  9 ++++++---
 grub-core/commands/i386/pc/sendkey.c  | 12 ++++++------
 grub-core/disk/i386/pc/biosdisk.c     |  4 ++--
 grub-core/fs/cbfs.c                   |  2 +-
 grub-core/kern/i386/pc/acpi.c         |  4 ++--
 grub-core/kern/i386/pc/mmap.c         |  2 +-
 grub-core/lib/reed_solomon.c          |  9 +++++++++
 grub-core/loader/i386/multiboot_mbi.c |  2 +-
 grub-core/loader/multiboot_mbi2.c     |  4 ++--
 grub-core/mmap/i386/pc/mmap.c         | 26 +++++++++++++-------------
 grub-core/net/drivers/i386/pc/pxe.c   | 12 ++++++------
 grub-core/term/i386/pc/console.c      |  5 ++---
 grub-core/term/i386/pc/vga_text.c     |  6 +++---
 grub-core/term/ns8250.c               |  7 ++++++-
 grub-core/video/i386/pc/vbe.c         |  6 +++---
 include/grub/compiler.h               | 11 +++++++++++
 util/mkimage.c                        | 21 +++++++++++++++++++++
 20 files changed, 104 insertions(+), 55 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-03-23  4:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-17  6:43 [PATCH 0/3] Fix GCC 12 build error Michael Chang
2022-03-17  6:43 ` [PATCH 1/3] mkimage: Fix dangling pointer may be used error Michael Chang
2022-03-22 20:59   ` Daniel Kiper
2022-03-17  6:43 ` [PATCH 2/3] Fix -Werror=array-bounds array subscript 0 is outside array bounds Michael Chang
2022-03-22 21:19   ` Daniel Kiper
2022-03-23  4:51     ` Michael Chang
2022-03-17  6:43 ` [PATCH 3/3] reed_solomon: Fix " Michael Chang
2022-03-17  7:41   ` Paul Menzel
2022-03-17  8:59     ` Michael Chang
2022-03-22 21:21   ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.