Title: Let's get rid of sprintf() · Issue #101703 · python/cpython · GitHub
Open Graph Title: Let's get rid of sprintf() · Issue #101703 · python/cpython
X Title: Let's get rid of sprintf() · Issue #101703 · python/cpython
Description: On macOS with Xcode 14 we now get warnings like these: Objects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf...
Open Graph Description: On macOS with Xcode 14 we now get warnings like these: Objects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security co...
X Description: On macOS with Xcode 14 we now get warnings like these: Objects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to sec...
Opengraph URL: https://github.com/python/cpython/issues/101703
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Let's get rid of sprintf()","articleBody":"On macOS with Xcode 14 we now get warnings like these:\r\n```\r\nObjects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]\r\n```\r\nWhile we can prove to ourselves that these specific `sprintf()` calls are safe, the warnings are annoying, but disabling them would also disable other, more useful warnings (or so @Yhg1s tells me on Discord). So let's just switch these to `snprintf()`.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-101729\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2023-02-08T18:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/101703/cpython/issues/101703"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2d342ebb-6df4-fe8b-7e88-cb6ba937c70d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C578:D7362:256B5A4:31756D4:696B25A3 |
| html-safe-nonce | e71d7fb541d780d9fa3c9c4e51101ad98742d68ab84d5c438203db45d5da448c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTc4OkQ3MzYyOjI1NkI1QTQ6MzE3NTZENDo2OTZCMjVBMyIsInZpc2l0b3JfaWQiOiIxMjcyODkxNjg1MzkzMzQzOTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 465ddabd8c13eea7bce6fae40c9792f3c6800ff0559bb0c77f25d67aa0f40dbc |
| hovercard-subject-tag | issue:1576615048 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/101703/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5073ed683f72ce47adbd40bbcc9e1ec153707c0008d55b613f2d7fbbeb6e97e0/python/cpython/issues/101703 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5073ed683f72ce47adbd40bbcc9e1ec153707c0008d55b613f2d7fbbeb6e97e0/python/cpython/issues/101703 |
| og:image:alt | On macOS with Xcode 14 we now get warnings like these: Objects/unicodeobject.c:736:16: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width