Title: [MNT]: Replace str(n)cpy etc with safe versions (C++) · Issue #22603 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Replace str(n)cpy etc with safe versions (C++) · Issue #22603 · matplotlib/matplotlib
X Title: [MNT]: Replace str(n)cpy etc with safe versions (C++) · Issue #22603 · matplotlib/matplotlib
Description: Summary There are some warnings about possibly unsafe functions in the cpp code when compiling on (at least) Windows. extern/ttconv/pprdrv_tt.cpp(208): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strc...
Open Graph Description: Summary There are some warnings about possibly unsafe functions in the cpp code when compiling on (at least) Windows. extern/ttconv/pprdrv_tt.cpp(208): warning C4996: 'strcpy': This function or var...
X Description: Summary There are some warnings about possibly unsafe functions in the cpp code when compiling on (at least) Windows. extern/ttconv/pprdrv_tt.cpp(208): warning C4996: 'strcpy': This functio...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22603
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Replace str(n)cpy etc with safe versions (C++)","articleBody":"### Summary\n\nThere are some warnings about possibly unsafe functions in the cpp code when compiling on (at least) Windows.\r\n```\r\n extern/ttconv/pprdrv_tt.cpp(208): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(237): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(250): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(263): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(276): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(289): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(302): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(326): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(1008): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/pprdrv_tt.cpp(1228): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n...\r\n extern/ttconv/ttutil.cpp(25): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n extern/ttconv/ttutil.cpp(32): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.\r\n \r\n```\n\n### Proposed fix\n\nUse the proposed safe functions instead.\r\n\r\nNote that these require C++ 11.","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2022-03-04T20:32:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/22603/matplotlib/issues/22603"}
| 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:f4ecadf3-fc29-e5d6-d4d6-61417fbdf7d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3A4:22A236:2658E8:343841:6A533587 |
| html-safe-nonce | 694b468cea7c8a8b578719b06e14f9133bff81030111d1432cb0bf94198c71ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0E0OjIyQTIzNjoyNjU4RTg6MzQzODQxOjZBNTMzNTg3IiwidmlzaXRvcl9pZCI6IjI4MTE5MzU0NDg2MjAwMjExMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8916d2aafb6a6545b8f09d6fcaf71dfc0cdab80de1718ab78b9d9d39a4540596 |
| hovercard-subject-tag | issue:1160028522 |
| 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/matplotlib/matplotlib/22603/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2312e9dd8ed486d5bb07e3e5223777a09b7323a8ab2cdaccea23f2a0692a1930/matplotlib/matplotlib/issues/22603 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2312e9dd8ed486d5bb07e3e5223777a09b7323a8ab2cdaccea23f2a0692a1930/matplotlib/matplotlib/issues/22603 |
| og:image:alt | Summary There are some warnings about possibly unsafe functions in the cpp code when compiling on (at least) Windows. extern/ttconv/pprdrv_tt.cpp(208): warning C4996: 'strcpy': This function or var... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscargus |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width