Skip to content

Modified greater than uint32 bits data test#53

Merged
dcousens merged 2 commits into
browserify:masterfrom
kiran13kumar13:master
Jan 22, 2018
Merged

Modified greater than uint32 bits data test#53
dcousens merged 2 commits into
browserify:masterfrom
kiran13kumar13:master

Conversation

@kiran13kumar13

Copy link
Copy Markdown
Contributor

This PR contains test related to PR #51

Comment thread test/test.js Outdated
var _hash = crypto.createHash('sha1')
var hash = new Sha1()
var bigData = Buffer.alloc(Math.pow(2, 32) / 8)
var bigData = Buffer.alloc((Math.pow(2, 32) + Math.pow(2,31))/ 8)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this actually be changed to 0xffffffff and 0x7fffffff ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would make 32nd bit as 0. Have changed it to 0x1ffffffff

@dcousens dcousens merged commit 238d43f into browserify:master Jan 22, 2018
@dcousens

Copy link
Copy Markdown
Member

Published as v2.4.10

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants