提交 7d6df670 编写于 作者: V valeriep

8000897: VM crash in CompileBroker

Summary: Fixed to use the corresponding digest length when generating output.
Reviewed-by: mullan
上级 72748b02
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -101,7 +101,7 @@ abstract class SHA2 extends DigestBase { ...@@ -101,7 +101,7 @@ abstract class SHA2 extends DigestBase {
i2bBig4((int)bitsProcessed, buffer, 60); i2bBig4((int)bitsProcessed, buffer, 60);
implCompress(buffer, 0); implCompress(buffer, 0);
i2bBig(state, 0, out, ofs, 32); i2bBig(state, 0, out, ofs, engineGetDigestLength());
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册