Skip to content
Snippets Groups Projects
  1. Nov 03, 2021
  2. Nov 02, 2021
  3. Oct 20, 2021
  4. Oct 15, 2021
  5. Oct 14, 2021
  6. Sep 04, 2021
  7. 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
  8. Aug 05, 2021
  9. Jul 26, 2021
  10. Jun 11, 2021
  11. Jun 04, 2021
  12. Jun 02, 2021
  13. May 27, 2021
  14. May 04, 2021
  15. May 02, 2021
  16. Apr 23, 2021
  17. Apr 08, 2021
Loading