On Mon, 2005-06-20 at 20:00 +0300, Itamar Rabenstein wrote: > Hi Tom, > I was just copied to original code from dapl_os_strdup() to > dapl_hca_alloc(). > so if it is a problem is it was there in the code before my patch. > But why do you think we need strncpy and not strcpy ? > name param is null terminated string.
It is generally not a good idea to allow an arbitrary sized string in the kernel. Especially when you are kmalloc()ing the size. -tduffy
signature.asc
Description: This is a digitally signed message part
_______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general