convince compiler that memmove won't overflow
@@ -61,6 +61,7 @@ struct name_util {
/* Check if there are any remaining "struct " strings, which can happen
* if this is a template type on msvc. */
+ if (len > struct_len) {
char *ptr = typeName;
while ((ptr = strstr(ptr + 1, "struct "))) {
// Make sure we're not matched with part of a longer identifier
@@ -71,6 +72,7 @@ struct name_util {
}
}
}
+ }
};
// Compiler-specific conversion from __PRETTY_FUNCTION__ to component name.
