From dfece178b7d4c7853d4d76ebb4a1db023c81acdc Mon Sep 17 00:00:00 2001 From: Bartosz J Date: Sat, 27 Sep 2014 18:13:03 +0200 Subject: [PATCH] Fix issue #25: - Omit SCRIPT_VALUE_TYPE_NULL entries with no key name --- script_bin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script_bin.c b/script_bin.c index c797fbe..8da9bd7 100644 --- a/script_bin.c +++ b/script_bin.c @@ -290,8 +290,11 @@ static int decompile_section(void *bin, size_t bin_size, goto malloc_error; }; break; case SCRIPT_VALUE_TYPE_NULL: - if (!script_null_entry_new(s, entry->name)) + if (!*entry->name) { + pr_err("%s: empty entry in section: %s\n", filename, section->name); + } else if (!script_null_entry_new(s, entry->name)) { goto malloc_error; + } break; default: pr_err("%s: %s.%s: unknown type %d\n",