[bitbake-devel] [OE-core] [PATCH] codeparser: Use hashlib for hashing, not hash()

Christopher Larson clarson at kergoth.com
Fri Jun 3 18:34:47 UTC 2016


On Fri, Jun 3, 2016 at 5:38 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> "hash() is randomised by default each time you start a new instance of
> recent
> versions (Python3.3+) to prevent dictionary insertion DOS attacks"
>
> which means we need to use hashlib.md5 to get consistent values for
> the codeparser cache under python 3. Prior to this, the codeparser
> cache was effectively useless under python3 as shown by performance
> regressions.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>

Looks good to me, I was actually wondering about the hashing mechanisms
just yesterday. Are the sstate checksums stable between python 2 and python
3?
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160603/a7970c86/attachment-0002.html>


More information about the bitbake-devel mailing list