diff options
| author | Peter Jones <pjones@redhat.com> | 2023-04-28 11:55:10 -0400 |
|---|---|---|
| committer | Jan Setje-Eilers <73182357+jsetje@users.noreply.github.com> | 2023-06-23 14:13:13 -0700 |
| commit | 569270d8603d68308ad8bf8ef4cad4b09101d35e (patch) | |
| tree | 7691e11182511094874e47eebc0dd23edb92bd16 /test-data | |
| parent | 996496065e9231dc51ca99b903615df8640bb797 (diff) | |
| download | efi-boot-shim-569270d8603d68308ad8bf8ef4cad4b09101d35e.tar.gz efi-boot-shim-569270d8603d68308ad8bf8ef4cad4b09101d35e.zip | |
Test (and fix) ImageAddress()
This adds a test case for our address sanitation checking function
ImageAddresS(). In doing so it addresses two issues:
- previously we allowed the address after the last byte of the image to
be computed (may need to revert this or fix some callers, we'll see...)
- bespoke overflow checking and using + directly instead of using
__builtin_add_overflow()
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'test-data')
| -rw-r--r-- | test-data/.gitignore | 1 | ||||
| -rwxr-xr-x | test-data/grubx64.0.76.el7.1.efi | bin | 0 -> 1168848 bytes | |||
| -rwxr-xr-x | test-data/grubx64.0.76.el7.efi | bin | 0 -> 1091024 bytes | |||
| -rwxr-xr-x | test-data/grubx64.0.80.el7.efi | bin | 0 -> 1168848 bytes |
4 files changed, 1 insertions, 0 deletions
diff --git a/test-data/.gitignore b/test-data/.gitignore new file mode 100644 index 00000000..bbde87b1 --- /dev/null +++ b/test-data/.gitignore @@ -0,0 +1 @@ +!/*.efi diff --git a/test-data/grubx64.0.76.el7.1.efi b/test-data/grubx64.0.76.el7.1.efi Binary files differnew file mode 100755 index 00000000..29f6812a --- /dev/null +++ b/test-data/grubx64.0.76.el7.1.efi diff --git a/test-data/grubx64.0.76.el7.efi b/test-data/grubx64.0.76.el7.efi Binary files differnew file mode 100755 index 00000000..5a198f6e --- /dev/null +++ b/test-data/grubx64.0.76.el7.efi diff --git a/test-data/grubx64.0.80.el7.efi b/test-data/grubx64.0.80.el7.efi Binary files differnew file mode 100755 index 00000000..c5f28d90 --- /dev/null +++ b/test-data/grubx64.0.80.el7.efi |
