Skip to content

Fix Digest bubblebabble incorrect output on empty string#3238

Merged
chrisseaton merged 1 commit intojruby:masterfrom
kubum:bubblebabble
Aug 12, 2015
Merged

Fix Digest bubblebabble incorrect output on empty string#3238
chrisseaton merged 1 commit intojruby:masterfrom
kubum:bubblebabble

Conversation

@kubum
Copy link
Contributor

@kubum kubum commented Aug 9, 2015

Hey guys

Before:

bin/jruby -rdigest -e "p Digest.bubblebabble ''"
"xx"

After:

bin/jruby -rdigest -e "p Digest.bubblebabble ''"
"xexax"

MRI:

ruby -rdigest/bubblebabble -e "p Digest.bubblebabble ''"
"xexax"

and http://web.mit.edu/kenta/www/one/bubblebabble/spec/jrtrjwzi/draft-huima-01.txt

Test Vectors

ASCII Input Encoding

' (empty string)xexax'

Fixes #2956

Before:

bin/jruby -rdigest -e "p Digest.bubblebabble ''"
"xx"

After:

bin/jruby -rdigest -e "p Digest.bubblebabble ''"
"xexax"
@kubum
Copy link
Contributor Author

kubum commented Aug 12, 2015

Hi @chrisseaton

What do you think about this PR? :)

chrisseaton added a commit that referenced this pull request Aug 12, 2015
Fix Digest bubblebabble incorrect output on empty string
@chrisseaton chrisseaton merged commit 5e3e186 into jruby:master Aug 12, 2015
@chrisseaton chrisseaton added this to the JRuby 9.0.1.0 milestone Aug 12, 2015
@chrisseaton chrisseaton self-assigned this Aug 12, 2015
@kares
Copy link
Member

kares commented Aug 12, 2015

... kept this open as this could use some more work, currently require 'digest/bubblebabble' blows

@chrisseaton
Copy link
Contributor

Wow that's strange - it's such a simple change and I thought all the tests were passing (apart from the Truffle MRI tests apparently but they are unrelated).

@kares
Copy link
Member

kares commented Aug 12, 2015

@chrisseaton sorry it does pass, still compatibility is not "ideal" since the require should work ...
I'll just open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants