summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-15 21:19:43 +0000
committerJeremy Allison <jra@samba.org>2003-09-15 21:19:43 +0000
commit9b8cbdfc2b0a601da1424784fbf02b705cc3fc8d (patch)
tree25e517704ef94aa6655e8d713aa420bed28751a5 /source3/smbd
parentdd50c0ed68457ac8118b00e568a30ae4abf5d33b (diff)
downloadsamba-9b8cbdfc2b0a601da1424784fbf02b705cc3fc8d.tar.gz
samba-9b8cbdfc2b0a601da1424784fbf02b705cc3fc8d.tar.bz2
samba-9b8cbdfc2b0a601da1424784fbf02b705cc3fc8d.zip
Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen. Jerry - last showstopper I knew about. Jeremy. (This used to be commit 6e6769c20643f784d1b5023df3071a35d2e5bf89)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/mangle_hash2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index 351461f11f..e0efb3e41b 100644
--- a/source3/smbd/mangle_hash2.c
+++ b/source3/smbd/mangle_hash2.c
@@ -219,7 +219,7 @@ static BOOL is_mangled_component(const char *name, size_t len)
if (len > 8) {
if (name[8] != '.')
return False;
- for (i=9; name[i]; i++) {
+ for (i=9; name[i] && i < len; i++) {
if (! FLAG_CHECK(name[i], FLAG_ASCII)) {
return False;
}