Message293280
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. |
|
Date |
User |
Action |
Args |
2017-05-09 06:04:12 | Sebastian.Noack | set | recipients:
+ Sebastian.Noack, rhettinger, serhiy.storchaka |
2017-05-09 06:04:12 | Sebastian.Noack | set | messageid: <1494309852.96.0.20958658296.issue30297@psf.upfronthosting.co.za> |
2017-05-09 06:04:12 | Sebastian.Noack | link | issue30297 messages |
2017-05-09 06:04:12 | Sebastian.Noack | create | |
|