* sbr/m_getfld.c: fix two bugs which could cause us to walk off
authorPeter Maydell <pmaydell@chiark.greenend.org.uk>
Fri, 26 Dec 2008 21:54:19 +0000 (21:54 +0000)
committerPeter Maydell <pmaydell@chiark.greenend.org.uk>
Fri, 26 Dec 2008 21:54:19 +0000 (21:54 +0000)
commit439d79535278cca4149434a457874addd94fee0f
tree8f05e2b1a36c382a363c997be2f210fc75ae9d39
parentdba2e3c8f09a64ebf3c07323f1cb5fb2fa611d12
* sbr/m_getfld.c: fix two bugs which could cause us to walk off
the beginning of the stdio or prefix-string buffer when checking
for presence of the end-of-message delimiter in some situations.
This might cause inc to dump core if you were unlucky. (This was
Debian bug 359167.)
* test/tests/inc/{md5sums,msgheader.txt,test-deb359167,
test-eom-align,fromline.txt,filler.txt,deb359167.mbox}: new tests
both for the specific problem and to try to check various alignments
of the eom string with the stdio buffer ending.
* test/common.sh: Added some functions for doing progress indicators.
ChangeLog
sbr/m_getfld.c
test/common.sh
test/tests/inc/deb359167.mbox [new file with mode: 0644]
test/tests/inc/filler.txt [new file with mode: 0644]
test/tests/inc/fromline.txt [new file with mode: 0644]
test/tests/inc/md5sums [new file with mode: 0644]
test/tests/inc/msgheader.txt [new file with mode: 0644]
test/tests/inc/test-deb359167 [new file with mode: 0644]
test/tests/inc/test-eom-align [new file with mode: 0644]