rpki-client / rpki-client-portable

Portability shim for OpenBSD's rpki-client

Home Page:https://rpki-client.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vis.c warning on debian

job opened this issue · comments

...
  CC       vis.lo
vis.c: In function 'stravis':
vis.c:252:23: warning: pointer 'buf' may be used after 'realloc' [-Wuse-after-free]
  252 |                 *outp = buf;
      |                 ~~~~~~^~~~~
vis.c:250:17: note: call to 'realloc' here
  250 |         *outp = realloc(buf, len + 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~
...

should this be fixed?