Author Sebastian.Noack
Recipients Sebastian.Noack, rhettinger, serhiy.storchaka
Date 2017-05-09.06:04:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494309852.96.0.20958658296.issue30297@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for your response, both of you. All you said, make sense.

Just for the record, I wouldn't necessarily expect 200k nested iterators to work. Even if it could be made work, I guess it would use way too much memory. But a RuntimeError would be much preferable over a crash.

For the code above, the fix would be to just immediately convert the iterator returned by starmap() to a list. But in the end, regardless of this additional operation, it didn't perform well, so that I tossed that code, and used openssl's PBKDF2 implementation through the ctypes module.

Still, I'm somewhat concerned that code like this, will cause an unexpected crash that cannot be handled, dependent on run time variables. Could this perhaps even provide a security vulnerability? It seems to be a buffer overflow, after all.
History
Date User Action Args
2017-05-09 06:04:12Sebastian.Noacksetrecipients: + Sebastian.Noack, rhettinger, serhiy.storchaka
2017-05-09 06:04:12Sebastian.Noacksetmessageid: <1494309852.96.0.20958658296.issue30297@psf.upfronthosting.co.za>
2017-05-09 06:04:12Sebastian.Noacklinkissue30297 messages
2017-05-09 06:04:12Sebastian.Noackcreate