]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() (GH-8337)
authorZackery Spytz <zspytz@gmail.com>
Sat, 21 Jul 2018 08:27:44 +0000 (02:27 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 21 Jul 2018 08:27:44 +0000 (11:27 +0300)
commit32522050773c257a5c3c0c8929ba5c64123b53ed
tree06a2ac5cf99f2cd7e9b862425a7ece47532259ac
parentc5bc6e477e659e95ab8837cea85c1e52ae916e02
bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() (GH-8337)

There was a missing check for integer overflow, several function calls
were not checked for failure, and allocated memory was not freed if an
error occurred.
Lib/bsddb/test/test_associate.py
Misc/NEWS.d/next/Core and Builtins/2018-07-18-23-40-32.bpo-25943.Zgf99y.rst [new file with mode: 0644]
Modules/_bsddb.c