]> diplodocus.org Git - nmh/commit
Added check that writesomecmd() isn't at the end of argp before
authorDavid Levine <levinedl@acm.org>
Mon, 11 Mar 2013 23:57:01 +0000 (18:57 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 11 Mar 2013 23:57:01 +0000 (18:57 -0500)
commite3c346c0fd80d1c88bc9e6902dcc4674c82d41b9
tree7a610a813974096fba04b6a55850e0e1d73fc16c
parent76ddfab4d76264b1cb30d7df642965c141e61545
Added check that writesomecmd() isn't at the end of argp before
dereferencing ++argp.  I'm surprised that no one, including me,
tripped over this before:  whatnow(1) would seg fault when
handling, e.g., detach -n 4.  But until I upgraded to Fedora 18,
I never noticed it.  (valgrind did.)
uip/whatnowsbr.c