summaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2021-03-31 18:24:30 +0100
committerSteve McIntyre <steve@einval.com>2021-03-31 18:24:30 +0100
commitec10b2569d63726b826c9afc6f14ff68e6f18d88 (patch)
tree2feb505d3c4358a93987062463937124d3d65464 /csv.c
parentb43a60b29267c5278652a87629434ad4f45c7493 (diff)
parent8119f7183f5f0bebb168fec5239855552020cf66 (diff)
downloadefi-boot-shim-ec10b2569d63726b826c9afc6f14ff68e6f18d88.tar.gz
efi-boot-shim-ec10b2569d63726b826c9afc6f14ff68e6f18d88.zip
Update upstream source from tag 'upstream/15.4'
Update to upstream version '15.4' with Debian dir 93160080661283eee071d2c92a27ce9b39acb998
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/csv.c b/csv.c
index d141f035..f6b37f15 100644
--- a/csv.c
+++ b/csv.c
@@ -55,8 +55,11 @@ parse_csv_data(char *data, char *data_end, size_t n_columns, list_t *list)
size_t max = 0;
char *end = data_end;
- if (!data || !end || end <= data || !n_columns || !list)
+ if (!data || !end || end <= data || !n_columns || !list) {
+ dprint(L"data:0x%lx end:0x%lx n_columns:%lu list:0x%lx\n",
+ data, end, n_columns, list);
return EFI_INVALID_PARAMETER;
+ }
max = (uintptr_t)end - (uintptr_t)line + (end > line ? 1 : 0);