u-boot-brain/lib/efi_selftest
Heinrich Schuchardt 0801d4d2fb efi_loader: correct signature of GetPosition, SetPosition
The UEFI spec requires that file positions are passed as u64 in
GetPosition() and SetPosition().

Check if the file handle points to a directory in GetPosition().

Provide a unit test for GetPosition() and SetPosition().

Fix Coverity warning CID 184079 (CONSTANT_EXPRESSION_RESULT).

Add comments.

Fixes: b6dd577737 ("efi_loader: use correct types in EFI_FILE_PROTOCOL")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
2018-10-16 15:47:05 +02:00
..
.gitignore efi_selftest: update .gitignore 2018-07-25 14:57:43 +02:00
efi_selftest_bitblt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_block_device.c efi_loader: correct signature of GetPosition, SetPosition 2018-10-16 15:47:05 +02:00
efi_selftest_config_table.c efi_selftest: check crc32 for InstallConfigurationTable 2018-07-25 15:00:24 +02:00
efi_selftest_console.c efi_loader: struct efi_simple_text_input_protocol 2018-09-23 21:55:29 +02:00
efi_selftest_controllers.c efi_selftest: test ReinstallProtocolInterface 2018-06-03 15:27:21 +02:00
efi_selftest_crc32.c efi_selftest: unit test for CalculateCrc32() 2018-07-25 15:00:24 +02:00
efi_selftest_devicepath_util.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_devicepath.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_disk_image.h SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_selftest_event_groups.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_events.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_exitbootservices.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_fdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_gop.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_loaded_image.c efi_selftest: test for loaded image protocol 2018-09-23 21:55:28 +02:00
efi_selftest_manageprotocols.c efi_selftest: memory leak testing manage protocols 2018-09-23 21:55:28 +02:00
efi_selftest_miniapp_exit.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_miniapp_return.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_rtc.c efi_selftest: unit test for GetTime() 2018-07-25 15:00:24 +02:00
efi_selftest_snp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_startimage_exit.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_startimage_return.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_textinput.c efi_selftest: use WaitForKey to test text input 2018-09-23 21:55:30 +02:00
efi_selftest_textinputex.c efi_selftest: missing braces in efi_selftest_textinputex.c 2018-09-23 21:55:30 +02:00
efi_selftest_textoutput.c efi_selftest: updating the cursor position 2018-06-03 15:27:20 +02:00
efi_selftest_tpl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest_unaligned.c SPDX: Fixup tags from latest EFI PR 2018-06-03 16:10:22 -04:00
efi_selftest_unicode_collation.c efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL 2018-09-23 21:55:29 +02:00
efi_selftest_util.c efi_selftest: refactor text input test 2018-09-23 21:55:30 +02:00
efi_selftest_variables.c efi_selftest: check for buffer overflow in efi_get_variable 2018-06-03 15:27:21 +02:00
efi_selftest_watchdog.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_selftest.c efi_selftest: Clean up a few comments and messages 2018-07-25 14:57:44 +02:00
Kconfig efi_loader: Disable efi selftest on sandbox for now 2018-09-23 21:55:31 +02:00
Makefile efi_selftest: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL 2018-09-23 21:55:30 +02:00