# HG changeset patch # User neliasso # Date 1507713741 -7200 # Node ID 089b6bf0d1a71e0ac49955a37e3e1ba05513d4f0 # Parent d8486f1f5a847b37db04b57babdcac06f2a76374 8160303: parse_method_pattern only scans 254 chars Summary: Fix wrong scan length Reviewed-by: kvn, redestad diff -r d8486f1f5a84 -r 089b6bf0d1a7 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;