Comment 5 for bug 1887144

Revision history for this message
Bryce Harrington (bryce) wrote : Re: autopkgtest failures on ppc64el with nodejs 12.18.1

Could it have anything to do with the patch being applied in node-sha.js, 0002-Fix-FTBFS-in-32-bits-arch.patch?

   var hash = new Sha1()
- var bigData = Buffer.alloc(0x1ffffffff / 8)
+ var bigData = Buffer.alloc(0x1fffffff8 / 8)

I wonder if this patch were disabled for ppc64el, if the test would then pass? If so, then perhaps the patch needs to test if its uint32 or uint64 first. (There appears to be code doing a 32/64 support check in hash.js' Hash.prototype.digest that might be pertinent.)