pidgin/pidgin

Implement mitigation for GHSL-2021-045

2021-02-07, Gary Kramlich
3a58ef28ee44
Implement mitigation for GHSL-2021-045

This add a static inline version of `g_memdup2` if the version of glib we're
compiling against doesn't have the function.

GHSL-2021-045 was originally reported to glib at
https://gitlab.gnome.org/GNOME/glib/-/issues/2319.

More information about the entire situation can be found on the gnome
desktop-devel-list at
https://mail.gnome.org/archives/desktop-devel-list/2021-February/msg00000.html

Testing Done:
Compiled and ran unit tests.

Reviewed at https://reviews.imfreedom.org/r/482/
af
am
ar
as
ast
az
be@latin
bg
bn_IN
bn
br
brx
bs
ca
ca@valencia
cs
da
de
dz
el
en_AU
en_CA
en_GB
eo
es_AR
es
et
eu
fa
fi
fr
ga
gl
gu
he
hi
hr
hu
hy
id
it
ja
ka
kk
km
kn
ko
ks
ku_IQ
ku
lt
lv
mai
mhr
mk
ml
mn
mr
ms_MY
my_MM
nb
ne
nl
nn
oc
or
pa
pl
ps
pt_BR
pt
ro
ru
sd
si
sk
sl
sq
sr@latin
sr
sv
sw
ta
te
th
tr
tt
uk
ur
uz
vi
xh
zh_CN
zh_HK
zh_TW