diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-15 03:05:23 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-15 03:05:23 +0000 |
commit | b03e3cc5bf1e08cf1f92202e7339bf9e1885686b (patch) | |
tree | 80581282c09863cf3398897582ccef47c4905e0c /ChangeLog | |
parent | 94ed480cdc467baf94dd2071e94421b22061168a (diff) |
* backport r32546 from trunk.
* ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. I see no perf drop on my 64bit env. For
more details, see #4320.
* test/digest/test_digest.rb: add test for unalignment access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +Fri Jul 15 09:59:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org> + + * backport r32546 from trunk. + + * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus + Error caused by unalignment access on Sparc-Solaris (and possibly on + other similar environment.) This patch just do memcpy always instead + of checking architecture. I see no perf drop on my 64bit env. For + more details, see #4320. + + * test/digest/test_digest.rb: add test for unalignment access. + + Thu Jul 14 12:40:07 2011 Hiroshi Nakamura <nahi@ruby-lang.org> * backport r32537 from trunk. |