8160303: parse_method_pattern only scans 254 chars
Summary: Fix wrong scan length
Reviewed-by: kvn, redestad
--- a/src/hotspot/share/compiler/methodMatcher.cpp Mon Nov 20 09:50:23 2017 +0100
+++ b/src/hotspot/share/compiler/methodMatcher.cpp Wed Oct 11 11:22:21 2017 +0200
@@ -288,7 +288,7 @@
line++;
sig[0] = '(';
// scan the rest
- if (1 == sscanf(line, "%254[[);/" RANGEBASE "]%n", sig+1, &bytes_read)) {
+ if (1 == sscanf(line, "%1022[[);/" RANGEBASE "]%n", sig+1, &bytes_read)) {
if (strchr(sig, '*') != NULL) {
error_msg = " Wildcard * not allowed in signature";
return;