Skip to content

Commit

Permalink
changing lower bound to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
h3110n3rv3 committed Dec 10, 2024
1 parent 50e2f3d commit 422c017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/rastrace/method_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ setMaxStringLength(J9JavaVM *vm, const char *str, BOOLEAN atRuntime)
goto err;
}

if ((0 <= value) && (value <= RAS_MAX_STRING_LENGTH_LIMIT)) {
if ((1 <= value) && (value <= RAS_MAX_STRING_LENGTH_LIMIT)) {
RAS_GLOBAL_FROM_JAVAVM(maxStringLength, vm) = (unsigned int)value;
return OMR_ERROR_NONE;
}
Expand Down

0 comments on commit 422c017

Please sign in to comment.