diff options
| author | Thomas Frauendorfer | Miray Software <tf@miray.de> | 2021-02-25 19:17:45 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-25 13:30:43 -0500 |
| commit | 6b742f2b718919854100f79e191b8401166d48e8 (patch) | |
| tree | 1f5de25b65bc8410f45fb18bceedd5937a891844 | |
| parent | 9c48fc3e6493c885388371ffa56f6b9b18ce4c0b (diff) | |
| download | efi-boot-shim-6b742f2b718919854100f79e191b8401166d48e8.tar.gz efi-boot-shim-6b742f2b718919854100f79e191b8401166d48e8.zip | |
Fix column size check in SBAT variable parsing.
Fix a typo that inverted the check that validates that a CSV
column is not empty.
Signed-off-by: Thomas Frauendorfer | Miray Software <tf@miray.de>
| -rw-r--r-- | sbat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ parse_sbat_var_data(list_t *entry_list, UINT8 *data, UINTN datasize) allocsz += sizeof(struct sbat_var_entry *); allocsz += sizeof(struct sbat_var_entry); for (i = 0; i < row->n_columns; i++) { - if (row->columns[i][0]) { + if (!row->columns[i][0]) { efi_status = EFI_INVALID_PARAMETER; goto err; } |
