mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)
Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org>
This commit is contained in:
parent
a7ff6df60c
commit
73b20ae2fb
26 changed files with 1966 additions and 113 deletions
|
|
@ -61,13 +61,6 @@ mpd_callocfunc_em(size_t nmemb, size_t size)
|
|||
size_t req;
|
||||
mpd_size_t overflow;
|
||||
|
||||
#if MPD_SIZE_MAX < SIZE_MAX
|
||||
/* full_coverage test only */
|
||||
if (nmemb > MPD_SIZE_MAX || size > MPD_SIZE_MAX) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
req = mul_size_t_overflow((mpd_size_t)nmemb, (mpd_size_t)size,
|
||||
&overflow);
|
||||
if (overflow) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue