Title: gh-92434: Silence a compiler warning in _sqlite/connection.c for 32bit version by neonene · Pull Request #93090 · python/cpython · GitHub
Open Graph Title: gh-92434: Silence a compiler warning in _sqlite/connection.c for 32bit version by neonene · Pull Request #93090 · python/cpython
X Title: gh-92434: Silence a compiler warning in _sqlite/connection.c for 32bit version by neonene · Pull Request #93090 · python/cpython
Description: MSVC emits a possible loss of data warning when building 32bit version of _sqlite3.Connection.serialize(), whose data size is should be limited to 0x7fffffff in sqlite-3.38.4.0/sqlite3.c, even on 64bit python (EDIT: Sorry, I missed the pages): SQLITE_PRIVATE void *sqlite3Malloc(u64 n){ void *p; if( n==0 || n>=0x7fffff00 ){ /* A memory allocation of a number of bytes which is near the maximum ** signed integer value might cause an integer overflow inside of the ** xMalloc(). Hence we limit the maximum size to 0x7fffff00, giving ** 255 bytes of overhead. SQLite itself will never use anything near ** this amount. The only way to reach the limit is with sqlite3_malloc() */ p = 0; }else if( sqlite3GlobalConfig.bMemstat ){ ... #92434
Open Graph Description: MSVC emits a possible loss of data warning when building 32bit version of _sqlite3.Connection.serialize(), whose data size is should be limited to 0x7fffffff in sqlite-3.38.4.0/sqlite3.c, even on 6...
X Description: MSVC emits a possible loss of data warning when building 32bit version of _sqlite3.Connection.serialize(), whose data size is should be limited to 0x7fffffff in sqlite-3.38.4.0/sqlite3.c, even on 6...
Opengraph URL: https://github.com/python/cpython/pull/93090
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7e522a21-056a-635a-92dc-53d2b094ef97 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 84F8:12343F:202BA9:2B96AF:696AA271 |
| html-safe-nonce | 73b723e552b11ff691eb08cdc3208cd485bb56f2fe6aeb9deb0746d9aa396a0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEY4OjEyMzQzRjoyMDJCQTk6MkI5NkFGOjY5NkFBMjcxIiwidmlzaXRvcl9pZCI6IjMyNzY4NTg2NDA0MjAyMTc0NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35d059a0a9bbda3cfcf9d70a89de279b047d1cdc3fc2cdaa0fb5726fe9555b90 |
| hovercard-subject-tag | pull_request:943988466 |
| 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/93090/files |
| twitter:image | https://avatars.githubusercontent.com/u/53406459?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/53406459?s=400&v=4 |
| og:image:alt | MSVC emits a possible loss of data warning when building 32bit version of _sqlite3.Connection.serialize(), whose data size is should be limited to 0x7fffffff in sqlite-3.38.4.0/sqlite3.c, even on 6... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width