projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd1141
)
Bugzilla 35: Fix buffer underrun when EOF condition occurs while reading a MIME header
author
Tom Kistner
<tom@duncanthrax.net>
Tue, 16 Aug 2005 12:32:32 +0000
(12:32 +0000)
committer
Tom Kistner
<tom@duncanthrax.net>
Tue, 16 Aug 2005 12:32:32 +0000
(12:32 +0000)
src/src/mime.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/mime.c
b/src/src/mime.c
index 051c8e09745e206986e3e1cd3f6c4e284ed26868..486fd3d1f9822b7edc78bd300929dab195ebf32e 100644
(file)
--- a/
src/src/mime.c
+++ b/
src/src/mime.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/mime.c,v 1.1
1 2005/08/02 09:42:24
tom Exp $ */
+/* $Cambridge: exim/src/src/mime.c,v 1.1
2 2005/08/16 12:32:32
tom Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@
-484,7
+484,7
@@
int mime_get_header(FILE *f, uschar *header) {
};
};
- if (
header[num_copied-1] != ';'
) {
+ if (
(num_copied > 0) && (header[num_copied-1] != ';')
) {
header[num_copied-1] = ';';
};