read: Avoid possible NULL dereference in getNthPrevCFromInputFile()
commitcdabbecd375be45f13b5e4f8c37053c96cd81499
authorColomban Wendling <ban@herbesfolles.org>
Sun, 24 Jan 2016 14:26:11 +0000 (24 15:26 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Sun, 24 Jan 2016 16:29:38 +0000 (24 17:29 +0100)
treeea1d3fcbe87af1eebee03005123c69bf7eaaf51e
parent67f3add7c7bed2b86769c9b86f2d6178b6daef6a
read: Avoid possible NULL dereference in getNthPrevCFromInputFile()

Also, don't perform subtractions to check pointer bounds, to avoid
unsigned value wraparound.  This is very unlikely as it would either
mean a very large `nth` value or a very small value for the current
line pointer, but better safe than sorry.
tagmanager/ctags/read.c