• Jaime Velasco Juan's avatar
    Never create nvp with NULL lhs or rhs · b7a64b82
    Jaime Velasco Juan authored
    After 1305fc "Fix string overrun bugs in nvp.c" a header such as
    "Content-Type: text/html; charset=utf-8;" (note trailing semicolon)
    creates a struct nvp {type=NVP_NAMEVALUE, lhs=NULL, rhs=NULL} and
    causes a segmentation fault afterwards when those pointers are used.
    
    Also unconditionally free temporal values, free(NULL) is valid.
    b7a64b82
Name
Last commit
Last update
dfasyn Loading commit data...
old_docs Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
ACKNOWLEDGEMENTS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.in Loading commit data...
NEWS Loading commit data...
README Loading commit data...
configure Loading commit data...
dates.c Loading commit data...
dates.h Loading commit data...
datescan.nfa Loading commit data...
db.c Loading commit data...
dirscan.c Loading commit data...
dotlock.c Loading commit data...
dotmairixrc.eg Loading commit data...
dumper.c Loading commit data...
expandstr.c Loading commit data...
from.h Loading commit data...
fromcheck.nfa Loading commit data...
glob.c Loading commit data...
hash.c Loading commit data...
imap.c Loading commit data...
imap.h Loading commit data...
imapinterface.c Loading commit data...
imapinterface.h Loading commit data...
mairix.1 Loading commit data...
mairix.c Loading commit data...
mairix.h Loading commit data...
mairix.spec.sample Loading commit data...
mairixrc.5 Loading commit data...
make_release Loading commit data...
mbox.c Loading commit data...
md5.c Loading commit data...
md5.h Loading commit data...
memmac.h Loading commit data...
mkversion Loading commit data...
nvp.c Loading commit data...
nvp.h Loading commit data...
nvp.nfa Loading commit data...
nvptypes.h Loading commit data...
reader.c Loading commit data...
reader.h Loading commit data...
rfc822.c Loading commit data...
search.c Loading commit data...
stats.c Loading commit data...
tok.c Loading commit data...
writer.c Loading commit data...