Title: gh-146121: Clarify security model of pkgutil.getdata; revert checks by encukou · Pull Request #148197 · python/cpython · GitHub
Open Graph Title: gh-146121: Clarify security model of pkgutil.getdata; revert checks by encukou · Pull Request #148197 · python/cpython
X Title: gh-146121: Clarify security model of pkgutil.getdata; revert checks by encukou · Pull Request #148197 · python/cpython
Description: pkgutil.getdata has the same security model as open(). The documented limitations ensure compatibility with non-filesystem loaders; Python doesn't check that. Revert the incomplete checks added in bcdf231 Issue: gh-146121 📚 Documentation preview 📚: https://cpython-previews--148197.org.readthedocs.build/
Open Graph Description: pkgutil.getdata has the same security model as open(). The documented limitations ensure compatibility with non-filesystem loaders; Python doesn't check that. Revert the incomplete checks added...
X Description: pkgutil.getdata has the same security model as open(). The documented limitations ensure compatibility with non-filesystem loaders; Python doesn't check that. Revert the incomplete checks a...
Opengraph URL: https://github.com/python/cpython/pull/148197
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2b4c11a1-89b7-a854-ec5e-d0331b932602 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B6D6:1525EF:1421C51:1A8420D:6A51B60D |
| html-safe-nonce | 5040b965fb7adfdecf1de064c68c188fc6b4afa9929b40ee5163603f5b55961c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkQ2OjE1MjVFRjoxNDIxQzUxOjFBODQyMEQ6NkE1MUI2MEQiLCJ2aXNpdG9yX2lkIjoiODk2NjM3NzU4OTUzNjA0NDU1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8159154743ceaa91c089d860c6282c8ddd8e8acc7e5fd67c84dfb819fc22ab38 |
| hovercard-subject-tag | pull_request:3496476746 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/148197/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | pkgutil.getdata has the same security model as open(). The documented limitations ensure compatibility with non-filesystem loaders; Python doesn't check that. Revert the incomplete checks added... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width