]> git.ipfire.org Git - thirdparty/squid.git/commit
MemBuf fix: empty MemBufs are not NULL terminated
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 8 Apr 2014 16:23:46 +0000 (19:23 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 8 Apr 2014 16:23:46 +0000 (19:23 +0300)
commitae3a7e8a925fe7379c3c34aaef12115b38020899
tree6ac43b027421d4a629f7004570cc8c20c4ebedd8
parentdaf2ddfad2f460b0edc38a6027cdaceb98d41d6e
MemBuf fix: empty MemBufs are not NULL terminated

This is may cause problems in some cases where the code assume that the MemBuf
is always NULL terminated. For example when an ErrorState object try to use
an empty errorpage template.

This patch terminates the (empty) MemBuf on MemBuf::init method.
src/MemBuf.cc