]> mj.ucw.cz Git - libucw.git/commit
Comparisons of type `if (f->bptr + length > f->bstop)' could overflow
authorMartin Mares <mj@ucw.cz>
Thu, 19 Aug 2004 13:37:08 +0000 (13:37 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 19 Aug 2004 13:37:08 +0000 (13:37 +0000)
commit1bb2d616aa5dc0613cd357a2352abe4470c36342
tree4358f573ed06493b9ad29ae7548865bf2d86c21b
parent6c0aebda08e5cf7b8ab19bccf238f25d534380f4
Comparisons of type `if (f->bptr + length > f->bstop)' could overflow
if `length' was much larger than the buffer size and the buffer was situated
at the end of the address space. Solved by introducing bavail{r,w}() and
using it systematically.
lib/fastbuf.h
lib/ff-utf8.h