CVS update: samba/source/passdb
jra at samba.org
Tue Jul 1 17:07:37 GMT 2003
On Tue, Jul 01, 2003 at 07:03:54PM +0200, Volker Lendecke wrote:
> On Tue, Jul 01, 2003 at 05:01:15PM +0000, Jeremy Allison wrote:
> > > Running 'net cache list' or secrets_get_trusted_domains through
> > > valgrind gives a *huge* amount of invalid reads of one byte beyond the
> > > indicated string length in libc's strncpy. Annoying...
> > We should replace these with strlcpy. Much more logical interface.
> As far as I can see from the Samba implementation this would also
> read over the non-null-terminated source string. It does a
> size_t = strlen(s)
Hmmm. Very good point. I must fix this.
More information about the samba-technical