8160303: parse_method_pattern only scans 254 chars
authorneliasso
Wed, 11 Oct 2017 11:22:21 +0200
changeset 48000 089b6bf0d1a7
parent 47999 d8486f1f5a84
child 48001 600868bd3a8c
8160303: parse_method_pattern only scans 254 chars Summary: Fix wrong scan length Reviewed-by: kvn, redestad
src/hotspot/share/compiler/methodMatcher.cpp
--- 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;