OpenJDK / amber / amber
changeset 46293:9a88f7fe04b5
8167423: Adding return value check and updating index variable
Reviewed-by: dholmes, coleenp
author | shshahma |
---|---|
date | Thu, 16 Feb 2017 00:50:19 -0800 |
parents | 6c4a987f7cd8 |
children | 345a46524a19 |
files | hotspot/src/share/vm/runtime/java.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/share/vm/runtime/java.cpp Mon Feb 27 23:20:05 2017 +0100 +++ b/hotspot/src/share/vm/runtime/java.cpp Thu Feb 16 00:50:19 2017 -0800 @@ -719,6 +719,8 @@ index += rc; if (_security > 0) { rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _security); + if (rc == -1) return; + index += rc; } if (_patch > 0) { rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _patch);