[InterNetNews/inn] 85dd23: Fix undefined behaviour in getaddrinfo test

Julien ÉLIE noreply at github.com
Mon Mar 25 21:22:35 UTC 2024


  Branch: refs/heads/main
  Home:   https://github.com/InterNetNews/inn
  Commit: 85dd23ab6d147f9da72674a23da3e12f0b1b6a54
      https://github.com/InterNetNews/inn/commit/85dd23ab6d147f9da72674a23da3e12f0b1b6a54
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M tests/lib/getaddrinfo-t.c

  Log Message:
  -----------
  Fix undefined behaviour in getaddrinfo test

Patch from upstream rra-c-util.

The portable/getaddrinfo test called gethostbyaddr and then assumed its
results could still be used after calling the getaddrinfo replacement.
However, the getaddrinfo replacement calls gethostbyaddr under the
hood, which is defined as invalidating the previous return data since
gethostbyaddr uses static storage.  Make a copy of the relevant results
instead.



To unsubscribe from these emails, change your notification settings at https://github.com/InterNetNews/inn/settings/notifications


More information about the inn-committers mailing list