git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd50c0e
)
Fix OOPS when dealing with mangled names reported by several users.
author
Jeremy Allison
<jra@samba.org>
Mon, 15 Sep 2003 21:19:43 +0000
(21:19 +0000)
committer
Jeremy Allison
<jra@samba.org>
Mon, 15 Sep 2003 21:19:43 +0000
(21:19 +0000)
This was my bug when removing a redundant strlen.
Jerry - last showstopper I knew about.
Jeremy.
(This used to be commit
6e6769c20643f784d1b5023df3071a35d2e5bf89
)
source3/smbd/mangle_hash2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/mangle_hash2.c
b/source3/smbd/mangle_hash2.c
index 351461f11fda9fa0ad8308743fff39954b0faa8e..e0efb3e41bc9a686cb188dbf7c4c2057f77cb471 100644
(file)
--- 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;
}