Protect against accessing "n->next->child" by first checking "n->next".
authorKristaps Dzonsons <kristaps@bsd.lv>
Sun, 17 Aug 2014 08:37:11 +0000 (08:37 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Sun, 17 Aug 2014 08:37:11 +0000 (08:37 +0000)
commitedaaac97ad1b06b9ec35a2d5c1a5ff0258cc5956
tree5a7c043d7a3caf2ed5087707be49e9a0d7a1fd92
parent7eba87a5fd2f971ba9c0cd6cb0db96ae643dc9e7
Protect against accessing "n->next->child" by first checking "n->next".
Noticed in a crash against ".It Nm Fo" with no closing "Fc".
Original patch expanded by schwarze@ then extended even more.
mdoc_term.c