cvs commit: src/sys/kern subr_hints.c

John Baldwin jhb at FreeBSD.org
Thu Mar 24 13:20:26 PST 2005


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


More information about the cvs-src mailing list