Skip to content

Backport !1926 “Add g_memdup2()” to glib-2-66

This is a non-trivial backport of !1926 (merged) to glib-2-66. Please review it with some care.

Differences from !1926 (merged):

  • gwin32packageparser.c doesn’t exist in 2.66, so the changes there have been dropped
  • The initial commit to add g_memdup2() has been reworked to add it to a new gstrfuncsprivate.h internal header, as a static inline function so that it can be used internally in GLib, GIO and GObject, without exporting new API (which is not allowed on stable branches)
  • Every other file has been updated to add #include "gstrfuncsprivate.h", but no other changes

Fixes: #2319 (closed)

Merge request reports