Mercurial > hg > release > icedtea7-forest-2.5 > jdk
changeset 7946:0af95754ffc5
8000897, RH1155012: VM crash in CompileBroker
Summary: Fixed to use the corresponding digest length when generating output.
Reviewed-by: mullan
author | valeriep |
---|---|
date | Tue, 26 Feb 2013 11:12:40 -0800 |
parents | f94c09f6a10e |
children | e4aec8a11c8a |
files | src/share/classes/sun/security/provider/SHA2.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/SHA2.java Thu Oct 16 17:30:05 2014 +0100 +++ b/src/share/classes/sun/security/provider/SHA2.java Tue Feb 26 11:12:40 2013 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -101,7 +101,7 @@ i2bBig4((int)bitsProcessed, buffer, 60); implCompress(buffer, 0); - i2bBig(state, 0, out, ofs, 32); + i2bBig(state, 0, out, ofs, engineGetDigestLength()); } /**