Skip to content
Snippets Groups Projects
  1. Nov 28, 2021
  2. Nov 19, 2021
  3. Nov 15, 2021
  4. Nov 11, 2021
  5. Nov 03, 2021
  6. Nov 02, 2021
  7. Oct 20, 2021
  8. Oct 15, 2021
  9. Oct 14, 2021
  10. Sep 04, 2021
  11. Aug 26, 2021
    • Peter Maydell's avatar
      net: Zero sockaddr_in in parse_host_port() · 59292384
      Peter Maydell authored
      
      We don't currently zero-initialize the 'struct sockaddr_in' that
      parse_host_port() fills in, so any fields we don't explicitly
      initialize might be left as random garbage.  POSIX states that
      implementations may define extensions in sockaddr_in, and that those
      extensions must not trigger if zero-initialized.  So not zero
      initializing might result in inadvertently triggering an impdef
      extension.
      
      memset() the sockaddr_in before we start to fill it in.
      
      Fixes: Coverity CID 1005338
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-id: 20210813150506.7768-2-peter.maydell@linaro.org
      59292384
  12. Aug 05, 2021
  13. Jul 26, 2021
  14. Jun 11, 2021
  15. Jun 04, 2021
  16. Jun 02, 2021
  17. May 27, 2021
  18. May 04, 2021
Loading