]> granicus.if.org Git - gc/commit
Eliminate 'possible integer underflow' code defect (cord-de)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Oct 2016 21:58:21 +0000 (00:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Oct 2016 20:47:51 +0000 (23:47 +0300)
commitb38d825e770534067b381f577c5efb859aa2cbe1
treed42c42a775ea857986dd5022fae8e4b61b9ec661
parenta779302dd79a04334f24809438ad7d0a5b2fdb4d
Eliminate 'possible integer underflow' code defect (cord-de)

* cord/tests/de.c (generic_init): Replace initial==CORD_EMPTY check
with 0==len where len is CORD_len(initial) (to outline that len-1
cannot cause underflow).
cord/tests/de.c