From ace2a0a8c14cfd68420d18e6ee01f0175618475c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 22 Dec 2023 19:41:06 +0000 Subject: [PATCH] ECC-1739: BUFR: Assertion failure decoding with invalid masterTablesVersionNumber --- src/action_class_hash_array.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/action_class_hash_array.cc b/src/action_class_hash_array.cc index 45223de76..b01077870 100644 --- a/src/action_class_hash_array.cc +++ b/src/action_class_hash_array.cc @@ -286,6 +286,12 @@ static grib_hash_array_value* get_hash_array_impl(grib_handle* h, grib_action* a full = grib_context_full_defs_path(context, master); if (c) { + if (!full) { + grib_context_log(context, GRIB_LOG_ERROR, + "unable to find definition file %s in %s:%s:%s\nDefinition files path=\"%s\"", + self->basename, master, ecmf, local, context->grib_definition_files_path); + return NULL; + } grib_hash_array_value* last = c; while (last->next) last = last->next;