summaryrefslogtreecommitdiff
path: root/src/binary-reader.c
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-01-19 10:41:19 -0800
committerGitHub <noreply@github.com>2017-01-19 10:41:19 -0800
commit149b47d0928583bec6aa2abb2272dbde594964c0 (patch)
tree91119f2d58d156b1c47e3a0cbff6486f914dfb2b /src/binary-reader.c
parent313743c0a8ca2f6a40406cb5cb4deceb05c50924 (diff)
downloadwabt-149b47d0928583bec6aa2abb2272dbde594964c0.tar.gz
wabt-149b47d0928583bec6aa2abb2272dbde594964c0.tar.bz2
wabt-149b47d0928583bec6aa2abb2272dbde594964c0.zip
Allow more names than function in binary-reader (#282)
ast-binary-reader will still fail if there are too many names but the binary-reader itself will allow this since the spec allows it.
Diffstat (limited to 'src/binary-reader.c')
-rw-r--r--src/binary-reader.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/binary-reader.c b/src/binary-reader.c
index 6ef162ac..7095403e 100644
--- a/src/binary-reader.c
+++ b/src/binary-reader.c
@@ -1653,8 +1653,6 @@ static void read_custom_section(Context* ctx, uint32_t section_size) {
CALLBACK_SECTION(begin_names_section, section_size);
uint32_t i, num_functions;
in_u32_leb128(ctx, &num_functions, "function name count");
- RAISE_ERROR_UNLESS(num_functions <= num_total_funcs(ctx),
- "function name count > function signature count");
CALLBACK(on_function_names_count, num_functions);
for (i = 0; i < num_functions; ++i) {
WasmStringSlice function_name;