wrstabs: sprintf sanitizer null destination pointer
authorAlan Modra <amodra@gmail.com>
Wed, 2 Aug 2023 22:37:54 +0000 (08:07 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2023 11:49:54 +0000 (21:19 +0930)
commitd191eacb7b5b23872eb955c880e72b811892561a
tree0a1e965abedff6833c9ad6dbfa5176eb77f702b3
parentb077a53b2b8e4da725f1563e95b55650d61b47e7
wrstabs: sprintf sanitizer null destination pointer

gcc-2.12 seems to be ignoring __attribute__((__returns_nonnull__))
on xmalloc.

* wrstabs.c (stab_method_type): Use stpcpy rather than sprintf
or strcat.
binutils/wrstabs.c