changeset 48197:089b6bf0d1a7

8160303: parse_method_pattern only scans 254 chars Summary: Fix wrong scan length Reviewed-by: kvn, redestad
author neliasso
date Wed, 11 Oct 2017 11:22:21 +0200
parents d8486f1f5a84
children 600868bd3a8c
files src/hotspot/share/compiler/methodMatcher.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;