File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ Core and Builtins
3434Library
3535-------
3636
37+ - Issue #17926: Fix dbm.__contains__ on 64-bit big-endian machines.
38+
3739- Issue #17918: When using SSLSocket.accept(), if the SSL handshake failed
3840 on the new socket, the socket would linger indefinitely. Thanks to
3941 Peter Saveliev for reporting.
Original file line number Diff line number Diff line change @@ -168,11 +168,13 @@ static int
168168dbm_contains (register dbmobject * dp , PyObject * v )
169169{
170170 datum key , val ;
171+ char * ptr ;
172+ Py_ssize_t size ;
171173
172- if (PyString_AsStringAndSize (v , (char * * )& key .dptr ,
173- (Py_ssize_t * )& key .dsize )) {
174+ if (PyString_AsStringAndSize (v , & ptr , & size ))
174175 return -1 ;
175- }
176+ key .dptr = ptr ;
177+ key .dsize = size ;
176178
177179 /* Expand check_dbmobject_open to return -1 */
178180 if (dp -> di_dbm == NULL ) {
You can’t perform that action at this time.
0 commit comments