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:
Antoine Pitrou 2021-03-30 18:11:06 +02:00 committed by GitHub
parent a7ff6df60c
commit 73b20ae2fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1966 additions and 113 deletions

View file

@ -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) {