projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e81e5
)
ARC: harden against malformed headers
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 27 Apr 2019 12:22:52 +0000
(13:22 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 27 Apr 2019 12:22:52 +0000
(13:22 +0100)
src/src/arc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/arc.c
b/src/src/arc.c
index 6c4bcc641e924e17bb8b37aeeb03180ccc213788..e7ebb97196db5110f6114ff969df6d152ff58abc 100644
(file)
--- a/
src/src/arc.c
+++ b/
src/src/arc.c
@@
-260,6
+260,7
@@
while ((c = *s))
while ((c = *++s) && c != ';')
if (c != ' ' && c != '\t' && c != '\n' && c != '\r')
g = string_catn(g, s, 1);
+ if (!g) return US"no b= value";
al->b.data = string_from_gstring(g);
al->b.len = g->ptr;
gstring_reset_unused(g);
@@
-276,6
+277,7
@@
while ((c = *s))
while ((c = *++s) && c != ';')
if (c != ' ' && c != '\t' && c != '\n' && c != '\r')
g = string_catn(g, s, 1);
+ if (!g) return US"no bh= value";
al->bh.data = string_from_gstring(g);
al->bh.len = g->ptr;
gstring_reset_unused(g);