Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 21:20:25 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_hints.c
Message-ID:  <200503242120.j2OLKPRU083374@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2005-03-24 21:20:25 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_hints.c 
  Log:
  Don't set ret_namelen and ret_resnamelen in res_find() unless both the
  corresponding pointer to the buffer (ret_name and ret_resname) is non-NULL
  to avoid possible NULL pointer derefs.
  
  Reported by:    Coverity via sam
  
  Revision  Changes    Path
  1.11      +2 -2      src/sys/kern/subr_hints.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503242120.j2OLKPRU083374>