]> git.ipfire.org Git - thirdparty/squid.git/commit
Use size_t instead of unsigned int for the page size to prevent int overflows
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Apr 2011 20:12:44 +0000 (14:12 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Apr 2011 20:12:44 +0000 (14:12 -0600)
commit4140f17defa9657ff38cc778b0362dd20368cda3
tree1b64a0c6d6be25abd023eecf03a8b5a9bfb78adf
parent1a98557c0fff49ee34f09d4ba559968d338d3e90
Use size_t instead of unsigned int for the page size to prevent int overflows
when computing the total segment size.

Size_t is also more appropriate for memory object sizes, even though it is
very unlikely that page sizes will get bigger than an int can hold.
src/ipc/mem/PagePool.cc
src/ipc/mem/PagePool.h