diff options
author | Alan Modra <amodra@gmail.com> | 2025-05-01 14:43:46 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-05-01 22:50:35 +0930 |
commit | a388feed3d4662623749a2e991ea802000cf74b7 (patch) | |
tree | cad5a4f7c93328e2a9fbcc630a12b6a3070462fc /gdb/python/py-breakpoint.c | |
parent | f72c4fa3d53b06992259293377ce17dad05c8701 (diff) | |
download | binutils-a388feed3d4662623749a2e991ea802000cf74b7.zip binutils-a388feed3d4662623749a2e991ea802000cf74b7.tar.gz binutils-a388feed3d4662623749a2e991ea802000cf74b7.tar.bz2 |
asan: null pointer as arg 2 of memcpy
Replace xmalloc+memcpy+free with xrealloc, avoiding the asan warning
on the initial allocation where we had memcpy(p,0,0).
* cg_arcs.c (arc_add): Use xrealloc.
Diffstat (limited to 'gdb/python/py-breakpoint.c')
0 files changed, 0 insertions, 0 deletions