History log of /DragonStub/lib/ (Results 26 – 50 of 109)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
269ef9db16-Jul-2021 b'Nigel Croxon <allura@localhost>

Merge /u/abeato/gnu-efi/ branch add-guids into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/26/

4ef1833515-Jul-2021 Pete Batard <pete@akeo.ie>

Fix VS2019 Code Analysis warnings

When compiling for x64, Visual Studio 2019's Code Analysis produces the following warnings:

C:\Projects\gnu-efi\lib\print.c(1380): warning C26451: Arithmetic overf

Fix VS2019 Code Analysis warnings

When compiling for x64, Visual Studio 2019's Code Analysis produces the following warnings:

C:\Projects\gnu-efi\lib\print.c(1380): warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2).
C:\Projects\gnu-efi\lib\smbios.c(47): warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2).
C:\Projects\gnu-efi\lib\str.c(289): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).

Fix these by adding an explicit cast to UINTN.

show more ...

fbbbf47e16-Jul-2021 Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>

Add definitions for the EFI device tree table

Add definitions for the EFI device tree table, as specified in UEFI
specification 2.9 (March 2021).

Signed-off-by: Alfonso Sánchez-Beato <alfonso.sanch

Add definitions for the EFI device tree table

Add definitions for the EFI device tree table, as specified in UEFI
specification 2.9 (March 2021).

Signed-off-by: Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>

show more ...

e2fc15ae21-Jun-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

lib/str: simplify Atoi()

Checking that str is non-zero is superfluous in

(*str && *str == ' ')

0x20 is always non-zero.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

500c10f121-Jun-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

lib/misc: avoid NULL dereference in LibInsertToTailOfBootOrder

AllocatePool() may return NULL. We must check the return value before
dereferencing it.

Signed-off-by: Heinrich Schuchardt <xypron.glp

lib/misc: avoid NULL dereference in LibInsertToTailOfBootOrder

AllocatePool() may return NULL. We must check the return value before
dereferencing it.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

show more ...

70402aa921-Jun-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

lib/hand: missing va_end() in LibReinstallProtocolInterfaces()

For each va_start() there must be a call to va_end().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

3676bc3505-Apr-2021 b'Nigel Croxon <allura@localhost>

Merge /u/xypron/gnu-efi/ branch riscv64 into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/17/

ea4c77ff05-Apr-2021 b'Nigel Croxon <allura@localhost>

Merge /u/xypron/gnu-efi/ branch va_args into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/16/

e686743b05-Apr-2021 b'Nigel Croxon <allura@localhost>

Merge /u/xypron/gnu-efi/ branch xtoi into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/15/

2a1200f305-Apr-2021 b'Nigel Croxon <allura@localhost>

Merge /u/kagurazakakotor/gnu-efi/ branch shell-protocol into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/13/

2cdf058105-Apr-2021 b'Nigel Croxon <allura@localhost>

Merge /u/kagurazakakotor/gnu-efi/ branch protocol-header into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/12/

0ec661b304-Apr-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

lib/hand: missing va_end

For each va_start() there must be a va_end().

Correct LibInstallProtocolInterfaces() and
LibUninstallProtocolInterfaces().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@

lib/hand: missing va_end

For each va_start() there must be a va_end().

Correct LibInstallProtocolInterfaces() and
LibUninstallProtocolInterfaces().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

show more ...

1771b6e704-Apr-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

lisb/str.c: simplify xtoi()

If str == ' ', str has to be non-zero. No extra check is needed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

b95f138f19-Mar-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

Initial support for RISCV64

Add the RISCV64 architecture

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

dfdcd7ef19-Mar-2021 Heinrich Schuchardt <xypron.glpk@gmx.de>

Undefined Status in LibGetVariableAndSize()

GrowBuffer() expects that parameter Status is initialized.
LibGetVariableAndSize() currently passes random data from the stack.

Initialize variable Statu

Undefined Status in LibGetVariableAndSize()

GrowBuffer() expects that parameter Status is initialized.
LibGetVariableAndSize() currently passes random data from the stack.

Initialize variable Status.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

show more ...

b39be0d501-Mar-2021 Pete Batard <pete@akeo.ie>

Define UnicodeSPrint/UnicodeVSPrint as our main SPrint/VSPrint calls

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
those are the names used by EDK2, so make the

Define UnicodeSPrint/UnicodeVSPrint as our main SPrint/VSPrint calls

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
those are the names used by EDK2, so make these our official names as well.

For compatibility with older gnu-efi versions, also keep SPrint and VSPrint defined.

show more ...

2458595301-Mar-2021 Pete Batard <pete@akeo.ie>

Use EFI_FILE_SYSTEM_VOLUME_LABEL rather than EFI_FILE_SYSTEM_VOLUME_LABEL_INFO

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Guid/FileSystemVolumeLabelInfo.h
the EDK2 uses EFI_FIL

Use EFI_FILE_SYSTEM_VOLUME_LABEL rather than EFI_FILE_SYSTEM_VOLUME_LABEL_INFO

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Guid/FileSystemVolumeLabelInfo.h
the EDK2 uses EFI_FILE_SYSTEM_VOLUME_LABEL and EFI_FILE_SYSTEM_VOLUME_LABEL_ID rather
than EFI_FILE_SYSTEM_VOLUME_LABEL_INFO and EFI_FILE_SYSTEM_VOLUME_LABEL_INFO_ID.

We redefine those to the proper EDK2 names, while also adding defines for compatibility.

show more ...

41e4d11d01-Mar-2021 Pete Batard <pete@akeo.ie>

Fix CopyMem() not handling overlaps

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/BaseMemoryLib.h
"(CopyMem) must handle the case where SourceBuffer overlaps DestinationBu

Fix CopyMem() not handling overlaps

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/BaseMemoryLib.h
"(CopyMem) must handle the case where SourceBuffer overlaps DestinationBuffer".

Having the gnu-efi version of CopyMem differ from the EDK2 version can lead to
extremely hard to troubleshoot issues as well as very unexpected results. So
make sure our version follows the same guidelines.

show more ...

b1c7a1c516-Feb-2021 Pete Batard <pete@akeo.ie>

Remove the need for other include paths besides <gnu-efi>/inc

Having to add specific arch include paths and then <gnu-efi>/lib
to be able to use gnu-efi in an application is annoying.

This patch en

Remove the need for other include paths besides <gnu-efi>/inc

Having to add specific arch include paths and then <gnu-efi>/lib
to be able to use gnu-efi in an application is annoying.

This patch ensures that the library itself takes care of including
the relevant headers, and that one needs only to add <gnu-efi>/inc
in their include path to be able to use gnu-efi.

show more ...

0247cb7c16-Feb-2021 Pete Batard <pete@akeo.ie>

Add AsciiPrint and AsciiVSPrint

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
AsciiPrint() is the official name of APrint() so declare it as such and define
an

Add AsciiPrint and AsciiVSPrint

Per https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PrintLib.h
AsciiPrint() is the official name of APrint() so declare it as such and define
an APrint alias for compatibility.

Also add an AsciiVSPrint() to print a formatted ASCII string to a buffer using
a va_list. AsciiPrint() too is defined in EDK2's PrintLib.h, though our implementation
just invokes the Unicode version and then converts the buffer to ASCII.

show more ...

6c04004f15-Nov-2020 Jiaqing Zhao <jiaqing.zhao@intel.com>

Add EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL definitions

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>

773f30af15-Nov-2020 Jiaqing Zhao <jiaqing.zhao@intel.com>

Move EFI_SHELL_PARAMETERS_PROTOCOL related definitions to efishell.h

As EFI_SHELL_PARAMETERS_PROTOCOL is also defined in UEFI Shell Spec,
put it together with EFI_SHELL_PROTOCOL.

Signed-off-by: Jia

Move EFI_SHELL_PARAMETERS_PROTOCOL related definitions to efishell.h

As EFI_SHELL_PARAMETERS_PROTOCOL is also defined in UEFI Shell Spec,
put it together with EFI_SHELL_PROTOCOL.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>

show more ...

2b26c81115-Nov-2020 Jiaqing Zhao <jiaqing.zhao@intel.com>

Add EFI_SHELL_PROTOCOL definitions

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>

ce0bd62f23-Jul-2020 Kagurazaka Kotori <kagurazakakotori@gmail.com>

Add Device Path Utilities Protocol support

Signed-off-by: Kagurazaka Kotori <kagurazakakotori@gmail.com>

7cc4f3a222-Jul-2020 Kagurazaka Kotori <kagurazakakotori@gmail.com>

Replace Pause() macro with new library function

Key input should be consumed to prevent WaitForKey event from being
always triggered and potential buffer overflow.
This fixes issue #26.

Signed-off-

Replace Pause() macro with new library function

Key input should be consumed to prevent WaitForKey event from being
always triggered and potential buffer overflow.
This fixes issue #26.

Signed-off-by: Kagurazaka Kotori <kagurazakakotori@gmail.com>

show more ...

12345