pidgin/pidgin

Implement mitigation for GHSL-2021-045
release-2.x.y
2021-02-07, Gary Kramlich
fb2056ce3c58
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 tests locally.

Reviewed at https://reviews.imfreedom.org/r/483/
N: ComBOTS Product GmbH (htfv)
T: 2007
E: foss@combots.com
N: Jonathan Clark
T: 2005-2006
E: ardentlygnarley a.t users d.o.t sourceforge d.o.t net
N: Mark Doliner
T: 2001-2006
H: markdoliner
E: thekingant a.t users d.o.t sourceforge d.o.t net
W: http://kingant.net/
N: Adam Fritzler
T: 1998-2001
H: mid
E: mid a.t auk d.o.t cx
W: http://www.auk.cx/~mid,http://www.auk.cx/faim
D: Wrote most of the wap of crap that you see before you.
N: Josh Myer
T: 1998-2001
E: josh a.t joshisanerd d.o.t com
D: OFT/ODC (not quite finished yet..), random little things, Munger-At-Large, compile-time warnings.
N: Daniel M. Pomerantz
H: dmprantz
D: Made initial versions cross platform
N: Daniel Reed
T: 1998-2001
H: n, linuxkitty
E: n a.t ml d.o.t org
W: http://users.n.ml.org/n/
D: Fixed aim_snac.c
N: Eric Warmenhoven
T: 1998-2001
E: warmenhoven a.t linux d.o.t com
D: Some OFT info, initial author of the libpurple-side of the oscar protocol plugin
N: Brock Wilcox
T: 1998-2001
H: awwaiid
E: awwaiid a.t auk d.o.t cx
D: Figured out original password roasting