On 3/9/21 19:44, Philippe Mathieu-Daudé wrote:
Per
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538
The old API took the size of the memory to duplicate as a guint,
whereas most memory functions take memory sizes as a gsize. This
made it easy to accide
Le 15/12/2021 à 17:54, Philippe Mathieu-Daudé a écrit :
Hi Laurent,
On 9/3/21 19:44, Philippe Mathieu-Daudé wrote:
This series provides the safely equivalent g_memdup2() wrapper,
and replace all g_memdup() calls by it.
Philippe Mathieu-Daudé (28):
hw/hyperv/vmbus: Remove unused vmbus_loa
Hi Laurent,
On 9/3/21 19:44, Philippe Mathieu-Daudé wrote:
> This series provides the safely equivalent g_memdup2() wrapper,
> and replace all g_memdup() calls by it.
> Philippe Mathieu-Daudé (28):
> hw/hyperv/vmbus: Remove unused vmbus_load/save_req()
> glib-compat: Introduce g_memdup2() wr
Per
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538
The old API took the size of the memory to duplicate as a guint,
whereas most memory functions take memory sizes as a gsize. This
made it easy to accidentally pass a gsize to g_memdup(). For large
value