-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-80254: Disallow recursive usage of cursors in sqlite3
converters
#29054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-80254: Disallow recursive usage of cursors in sqlite3
converters
#29054
Conversation
🤖 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:
|
On hold until end of week: #29054 (comment) |
@erlend-aasland, sorry for delay, I closed my PR. |
sqlite3
converterssqlite3
converters
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. |
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @erlend-aasland and @JelleZijlstra, I could not cleanly backport this to |
Sorry @erlend-aasland and @JelleZijlstra, I had trouble checking out the |
I'll fix the backports |
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>
@JelleZijlstra, correct! Crashers are DoS and as such are treated as security issues. |
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Thanks @erlend-aasland for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, @erlend-aasland and @JelleZijlstra, I could not cleanly backport this to |
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). |
Thanks! I looked at the 3.10 backport for a while but I'm not sure where the refleak is. |
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. |
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