aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-09-06 15:49:57 +0200
committerIngela Anderton Andin <[email protected]>2016-09-06 15:49:57 +0200
commitd6528b8538a64659b1836806ba946877d5aed129 (patch)
tree7784aea992d3f6b34ae5eff84e7871f39f3f763e /erts/emulator/beam/beam_load.c
parentb93bd3775ed663481cdbfa5bc905a7cecf807a9b (diff)
parentb0d29cc77f3c8d4d63dabb2f00570b0130f9f175 (diff)
downloadotp-d6528b8538a64659b1836806ba946877d5aed129.tar.gz
otp-d6528b8538a64659b1836806ba946877d5aed129.tar.bz2
otp-d6528b8538a64659b1836806ba946877d5aed129.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 5810cce4c7..d1f9e6c91c 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2635,6 +2635,10 @@ load_code(LoaderState* stp)
* End of code found.
*/
case op_int_code_end:
+ if (function_number != stp->num_functions) {
+ LoadError2(stp, "too few functions (%u) in module (header said %u)",
+ function_number, stp->num_functions);
+ }
stp->codev_size = codev_size;
stp->ci = ci;
stp->function = THE_NON_VALUE;