This is more consistent with the above code using
sizeof (grub_efi_char16_t).
Signed-off-by: Frediano Ziglio
---
grub-core/loader/efi/linux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/linux.c
index 3b5c4ed17..9df49
If the following allocation fails this would leave "load_options"
NULL while "load_options_size" not valid.
If the allocation succeed "load_options_size" is overwritten.
Signed-off-by: Frediano Ziglio
Reviewed-by: Daniel Kiper
---
grub-core/loader/efi/linux.c | 3 +--
1 file changed, 1 insertio
On Tue, Jun 24, 2025 at 01:32:24PM -0600, Leo Sandoval via Grub-devel wrote:
> Containers bring the ability to have ready-to-use environments and in
> this case complete Fedora and Debian container files are described
> containing all required packages for building and testing grub2.
The project n
The size passed to grub_utf8_to_utf16 for the source string is
used as a limit for the string if NUL character is not encountered
however len, which is strlen(src)*2+2 is surely greater than
strlen(src).
Pass the exact correct length.
Signed-off-by: Frediano Ziglio
---
Changes since v3:
- pass ex
This is more consistent with the above code using
sizeof (grub_efi_char16_t).
Signed-off-by: Frediano Ziglio
Reviewed-by: Daniel Kiper
---
grub-core/loader/efi/linux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/loader/efi/linux.c b/grub-core/loader/efi/lin
The series started from the issue that LoadOptions, if providing just
command line arguments should be NUL-terminated.
But this carried some updates to adjust the code properly.
Changes since v3:
- use proper length converting args string;
- added Reviewed-by comments.
Frediano Ziglio (6):
load
Although the length should not exceed 2^31 grub_size_t is more
suitable for that variable. "len" is used to compute the size
of buffers which in C is a size_t, not a int. It is used
for GRUB_EFI_BYTES_TO_PAGES which expects unsigned values.
It is assigned to load_options_size which is unsigned, not
(grub_size_t) -1 is never returned, the function always return
a not negative values. This is important for overflows considerations.
Signed-off-by: Frediano Ziglio
Reviewed-by: Daniel Kiper
---
include/grub/charset.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include
If a simple string for arguments are passed it should be NUL
terminated. This is true for other code but not for "linux"
command.
Signed-off-by: Frediano Ziglio
---
Changes since v1
- remove useless assignment.
Changes since v2
- split changes;
- correct spacing.
---
grub-core/loader/efi/linux.
On Wed, Jun 25, 2025 at 1:41 PM Daniel Kiper wrote:
>
> In general patches #1, #2, #4 and #5 make sense for me. So, you can add
> my RB there...
>
> On Wed, Jun 25, 2025 at 07:42:27AM +0100, Frediano Ziglio via Grub-devel
> wrote:
> > If a simple string for arguments are passed it should be NUL
>
On Wed, Jun 25, 2025 at 1:27 PM Daniel Kiper wrote:
>
> On Wed, Jun 25, 2025 at 07:42:24AM +0100, Frediano Ziglio via Grub-devel
> wrote:
> > The size passed to grub_utf8_to_utf16 for the source string is
> > used as a limit for the string if NUL character is not encountered
> > however len, whic
In general patches #1, #2, #4 and #5 make sense for me. So, you can add
my RB there...
On Wed, Jun 25, 2025 at 07:42:27AM +0100, Frediano Ziglio via Grub-devel wrote:
> If a simple string for arguments are passed it should be NUL
> terminated. This is true for other code but not for "linux"
> comm
On Wed, Jun 25, 2025 at 07:42:24AM +0100, Frediano Ziglio via Grub-devel wrote:
> The size passed to grub_utf8_to_utf16 for the source string is
> used as a limit for the string if NUL character is not encountered
> however len, which is strlen(src)*2+2 is surely greater than
> strlen(src).
> Pass
On Tue, Jun 24, 2025 at 01:27:35PM -0400, Mike Gilbert wrote:
> On Tue, Jun 10, 2025 at 11:15 PM Andrew Hamilton wrote:
> >
> > Fix several issues with attempting to create and build from the
> > GRUB 'dist' archive.
> >
> > 1. extra_deps.lst is now automatically generated so remove this
> > from
On Tue, Jun 24, 2025 at 4:48 PM Daniel Kiper wrote:
>
> On Tue, Jun 24, 2025 at 09:01:14AM +0100, Frediano Ziglio via Grub-devel
> wrote:
> > If a simple string for arguments are passed it should be NUL
> > terminated. This is true for other code but not for "linux"
> > command.
> > Signed-off-by
If a simple string for arguments are passed it should be NUL
terminated. This is true for other code but not for "linux"
command.
Signed-off-by: Frediano Ziglio
---
Changes since v1
- remove useless assignment.
Changes since v2
- split changes;
- correct spacing.
---
grub-core/loader/efi/linux.
16 matches
Mail list logo