This website works better with JavaScript.
Home
Explore
Help
Sign In
damien
/
fmail
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
5
Wiki
Activity
Browse Source
Abort on prematurate EOF when reading headers
master
Damien Goutte-Gattat
9 years ago
parent
71b756fc7f
commit
c7aafcc2f3
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/fmail.c
+ 4
- 0
src/fmail.c
View File
@ -236,6 +236,10 @@ read_headers(FILE *in, string_buffer_t *headers)
n
=
0
;
}
}
else
if
(
c
=
=
EOF
)
{
/* EOF before reaching the end of headers, abort. */
errx
(
EXIT_FAILURE
,
"
cannot read mail headers
"
)
;
}
else
{
sb_addc
(
headers
,
c
)
;
n
+
=
1
;
Write
Preview
Loading…
Cancel
Save