The Samba-Bugzilla – Attachment 7177 Details for
Bug 8654
link-by-hash: Fix (non-exploitable) buffer overflow
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Code cleanup
0001-Code-cleanup.patch (text/plain), 1.79 KB, created by
Chris Dunlop
on 2011-12-14 03:40:08 UTC
(
hide
)
Description:
Code cleanup
Filename:
MIME Type:
Creator:
Chris Dunlop
Created:
2011-12-14 03:40:08 UTC
Size:
1.79 KB
patch
obsolete
>From 1c5b628a54e2ce988cfa739620f7e3be89d17d0c Mon Sep 17 00:00:00 2001 >From: Chris Dunlop <chris@onthe.net.au> >Date: Tue, 13 Dec 2011 11:16:29 +1100 >Subject: [PATCH] Code cleanup > >Make local functions static > >Signed-off-by: Chris Dunlop <chris@onthe.net.au> >--- > hashlink.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/hashlink.c b/hashlink.c >index 263f6e3..fab92f8 100644 >--- a/hashlink.c >+++ b/hashlink.c >@@ -24,7 +24,7 @@ extern char *link_by_hash_dir; > > #ifdef HAVE_LINK > >-char *make_hash_name(struct file_struct *file) >+static char *make_hash_name(struct file_struct *file) > { > char hash[(MAX_DIGEST_LEN * 2) + 2], *dst = hash; > uchar *src = (uchar*)F_SUM(file); >@@ -47,7 +47,7 @@ char *make_hash_name(struct file_struct *file) > } > > >-void kill_hashfile(struct hashfile_struct *hashfile) >+static void kill_hashfile(struct hashfile_struct *hashfile) > { > if (!hashfile) > return; >@@ -57,7 +57,7 @@ void kill_hashfile(struct hashfile_struct *hashfile) > } > > >-void kill_hashfiles(struct hashfile_struct *hashfiles) >+static void kill_hashfiles(struct hashfile_struct *hashfiles) > { > struct hashfile_struct *iter, *next; > if ((iter = hashfiles) != NULL) { >@@ -70,7 +70,7 @@ void kill_hashfiles(struct hashfile_struct *hashfiles) > } > > >-struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) >+static struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) > { > DIR *d; > struct dirent *di; >@@ -132,7 +132,7 @@ struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr) > } > > >-struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files) >+static struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files) > { > int amt, hamt; > char buffer[BUFSIZ], cmpbuffer[BUFSIZ]; >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8654
:
7167
|
7168
|
7169
|
7170
|
7173
|
7174
|
7175
|
7176
| 7177 |
7202