[exim-dev] [Bug 1478] Two width bugs

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Git Commit
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 1478] Two width bugs
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1478

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???





--- Comment #4 from Git Commit <git@???> 2014-05-12 16:17:10 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/c3680ef0b5c4c4fe71a8badba562780bd45ddce4

commit c3680ef0b5c4c4fe71a8badba562780bd45ddce4
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon May 12 13:54:33 2014 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Mon May 12 14:36:42 2014 +0100


    Fix pair of buffer size errors.  Bug 1478


    Reported-by: David Binderman
---
 src/Makefile      |    1 +
 src/OS/os.c-Linux |    2 +-
 src/src/malware.c |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/src/Makefile b/src/Makefile
index b913aec..99f4ab3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -94,6 +94,7 @@ cscope.files: FRC
                    -o -name "os.h*" -print \
                    -o -name "*akefile*" -print \
                    -o -name EDITME -print >> $@
+       ls OS/* >> $@


FRC:

diff --git a/src/OS/os.c-Linux b/src/OS/os.c-Linux
index 1e8a6f4..df0dff9 100644
--- a/src/OS/os.c-Linux
+++ b/src/OS/os.c-Linux
@@ -94,7 +94,7 @@ ip_address_item *last = NULL;
ip_address_item *next;
char addr6p[8][5];
unsigned int plen, scope, dad_status, if_idx;
-char devname[20];
+char devname[20+1];
FILE *f;
#endif

diff --git a/src/src/malware.c b/src/src/malware.c
index cae0cdd..2d2a8c8 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -42,7 +42,7 @@ static struct scan
#define MAX_CLAMD_ADDRESS_LENGTH_S "64"

typedef struct clamd_address_container {
- uschar tcp_addr[MAX_CLAMD_ADDRESS_LENGTH];
+ uschar tcp_addr[MAX_CLAMD_ADDRESS_LENGTH+1];
unsigned int tcp_port;
} clamd_address_container;



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email