Last active
August 31, 2017 06:16
-
-
Save misterdjules/e1ddcabf726a92939d01d918e8984cdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mdb_v8.c b/src/mdb_v8.c | |
index 7a50fcb..91a3a25 100644 | |
--- a/src/mdb_v8.c | |
+++ b/src/mdb_v8.c | |
@@ -81,7 +81,7 @@ static v8_class_t *v8_classes; | |
static v8_enum_t v8_types[128]; | |
static int v8_next_type; | |
-static v8_enum_t v8_frametypes[16]; | |
+static v8_enum_t v8_frametypes[32]; | |
static int v8_next_frametype; | |
static int v8_warnings; | |
@@ -1348,7 +1348,7 @@ conf_update_type(v8_cfg_t *cfgp, const char *symbol) | |
v8_enum_t *enp; | |
char buf[128]; | |
- if (v8_next_type > sizeof (v8_types) / sizeof (v8_types[0])) { | |
+ if (v8_next_type >= sizeof (v8_types) / sizeof (v8_types[0])) { | |
mdb_warn("too many V8 types\n"); | |
return (-1); | |
} | |
@@ -1373,7 +1373,7 @@ conf_update_frametype(v8_cfg_t *cfgp, const char *symbol) | |
const char *frametype; | |
v8_enum_t *enp; | |
- if (v8_next_frametype > | |
+ if (v8_next_frametype >= | |
sizeof (v8_frametypes) / sizeof (v8_frametypes[0])) { | |
mdb_warn("too many V8 frame types\n"); | |
return (-1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment