Guard against potential buffer overflow in CORD_next and CORD_pos_fetch
authorIvan Maidanski <ivmai@mail.ru>
Mon, 12 Nov 2018 17:57:32 +0000 (20:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 12 Nov 2018 17:57:32 +0000 (20:57 +0300)
commit68ed65ab425c81027c66e73ee1b734d8dbf785ad
tree5f359b7309573aef9847718b0713fdcdc683e3b8
parent06bd53fff8c91391e4adeeb78640eae00b7bbe09
Guard against potential buffer overflow in CORD_next and CORD_pos_fetch

* cord/cordbscs.c (CORD__pos_fetch, CORD__next): Call ABORT() if
CORD_pos_valid() returns false for the argument (do not compute pe
in this case).
cord/cordbscs.c