public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* bug in smbfs source code?
@ 2004-12-21  2:16 Julian Pellico
  0 siblings, 0 replies; only message in thread
From: Julian Pellico @ 2004-12-21  2:16 UTC (permalink / raw)
  To: linux-kernel

Hi,

I've been looking over the smbfs kernel code with someone at work and
he thinks there might be a bug.

In fs/smbfs/proc.c function smb_build_path (I won't give exact line
numbers 'cause I'm looking at 2.5.6), the first call of the form:

len = server->ops->convert(path, maxlen-2, 
				      entry->d_name.name, entry->d_name.len,
				      server->local_nls, server->remote_nls);

We think that maxlen-2 should be
maxlen - (2 << unicode)

Does anyone agree?

Thanks,
Julian

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-21  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21  2:16 bug in smbfs source code? Julian Pellico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox