Skip to content

Commit

Permalink
Fix issue #25: - Omit SCRIPT_VALUE_TYPE_NULL entries with no key name
Browse files Browse the repository at this point in the history
  • Loading branch information
jankowskib authored and amery committed Sep 27, 2014
1 parent 22a07bc commit dfece17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dfece17

Please sign in to comment.