opengnsys_ipxe/src
Michael Brown 0cc0f47443 [tls] Tidy up error handling flow in tls_send_plaintext()
Coverity reported that tls_send_plaintext() failed to check the return
status from tls_generate_random(), which could potentially result in
uninitialised random data being used as the block initialisation
vector (instead of intentionally random data).

Add the missing return status check, and separate out the error
handling code paths (since on the successful exit code path there will
be no need to free either the plaintext or the ciphertext anyway).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2024-01-31 13:49:35 +00:00
..
arch [efi] Fix hang during ExitBootServices() 2024-01-31 13:23:56 +00:00
bin [build] Reduce scope of wildcard .gitignore rules 2024-01-09 12:39:48 +00:00
config [tls] Add ECDHE cipher suites 2024-01-31 12:34:20 +00:00
core [libc] Use wall clock time as seed for the (non-cryptographic) RNG 2023-10-06 12:50:43 +01:00
crypto [tls] Add ECDHE cipher suites 2024-01-31 12:34:20 +00:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [bnxt] Add support for additional chip IDs 2024-01-19 22:08:48 +00:00
hci [efi] Implement "shim" as a dummy command on non-EFI platforms 2023-05-24 10:20:31 +01:00
image [libc] Make static_assert() available via assert.h 2024-01-16 13:35:08 +00:00
include [tls] Add ECDHE cipher suites 2024-01-31 12:34:20 +00:00
interface [smbios] Support scanning for the 64-bit SMBIOS3 entry point 2023-12-29 19:38:47 +00:00
libgcc [libgcc] Change __divmoddi4 from int64 [unknown] to int64_t 2020-07-21 14:33:32 +01:00
net [tls] Tidy up error handling flow in tls_send_plaintext() 2024-01-31 13:49:35 +00:00
scripts [arm] Inhibit linker warnings about an implied executable stack 2023-01-23 12:55:44 +00:00
tests [crypto] Check for all-zeros result from X25519 key exchange 2024-01-30 13:21:01 +00:00
usr [efi] Support versions of shim that perform SBAT verification 2023-05-23 15:27:20 +01:00
util [efi] Add potentially missing relocation types 2023-12-21 12:29:03 +00:00
.gitignore [build] Reduce scope of wildcard .gitignore rules 2024-01-09 12:39:48 +00:00
Makefile [build] Avoid invoking genkeymap.py via Perl 2022-02-15 13:54:28 +00:00
Makefile.efi [build] Avoid using multiple target patterns in pattern rules 2023-06-30 10:31:52 +01:00
Makefile.housekeeping [build] Inhibit more linker warnings about an implied executable stack 2023-07-04 15:12:49 +01:00
Makefile.linux [linux] Centralise the linker script for Linux binaries 2023-01-22 12:38:03 +00:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00