Uh oh!
There was an error while loading. Please reload this page.
gh-80254: Disallow recursive usage of cursors in sqlite3 converters - #29054
Conversation
bedevere-bot
commented
Oct 19, 2021
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit bb0a729 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Buildbot comments:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Oct 19, 2021
On hold until end of week: #29054 (comment) |
sir-sigurd
commented
Nov 17, 2021
@erlend-aasland, sorry for delay, I closed my PR. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sqlite3 converterssqlite3 convertersMaxwellDupre
commented
Apr 20, 2022
I think it would be a good idea to mention in the Docs. If already there please show ref. |
@MaxwellDupre, can you please explain why? I think we should not try to encourage users to shoot themselves in the foot with adapters and converters (or at all), so I prefer, very strongly, not to mention this in the docs. |
miss-islington
commented
May 3, 2022
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
miss-islington
commented
May 3, 2022
Sorry, @erlend-aasland and @JelleZijlstra, I could not cleanly backport this to |
miss-islington
commented
May 3, 2022
Sorry @erlend-aasland and @JelleZijlstra, I had trouble checking out the |
erlend-aasland
commented
May 3, 2022
I'll fix the backports |
JelleZijlstra
commented
May 3, 2022
Thanks! I think it should go into the security branches too, because every segfault is potentially an exploitable security issue. @ambv what do you think? |
…3` converters (python#29054) (cherry picked from commit f629dcf) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
ambv
commented
May 4, 2022
@JelleZijlstra, correct! Crashers are DoS and as such are treated as security issues. |
miss-islington
commented
May 4, 2022
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
miss-islington
commented
May 4, 2022
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
miss-islington
commented
May 4, 2022
Sorry, @erlend-aasland and @JelleZijlstra, I could not cleanly backport this to |
miss-islington
commented
May 4, 2022
Sorry @erlend-aasland and @JelleZijlstra, I had trouble checking out the |
Thanks for that fact regarding crashers, I was unaware! 📝 I'll fix the backports as soon as possible (currently on my way back home from pycon). |
JelleZijlstra
commented
May 4, 2022
Thanks! I looked at the 3.10 backport for a while but I'm not sure where the refleak is. |
erlend-aasland
commented
May 5, 2022
No worries, I found and fixed it in flight to Chicago. I've yet to push it though. But 3.9 contains even more ref. leaks! Looking into that soon. |
erlend-aasland
commented
May 5, 2022
FTR (also cross-posting this list on the issue):
|
…verters (#92274) * [3.10] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#29054) (cherry picked from commit f629dcf) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> * Fix ref leak in pysqlite_cursor_iternext
Original PR: GH-11984
Fixes#80254
https://bugs.python.org/issue36073