Fix SEGV in _thread_cleanup_author if author ends with ', '
authorDirk Hohndel <hohndel@infradead.org>
Tue, 27 Apr 2010 23:29:22 +0000 (16:29 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Apr 2010 23:34:27 +0000 (16:34 -0700)
commita258cb32b318d831fab5ef64329bd65119b47def
tree53c4cf8336612ed7877c7a6150223c56a07db0cc
parent2baa5769a3339b6b866c0f1bbf40006a6eae9808
Fix SEGV in _thread_cleanup_author if author ends with ', '

Admittedly, an author name ending in ',' guarantees this is spam, and
indeed this was triggered by a spam email, but that doesn't mean we
shouldn't handle this case correctly.
We now check that there is actually a component of the name (presumably
the first name) after the comma in the author name.

Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
lib/thread.cc