diff options
author | 2010-04-28 11:45:41 +0100 | |
---|---|---|
committer | 2010-06-01 16:09:29 -0700 | |
commit | 1671eaecdb69133bc88fd212c77b68122fa27600 (patch) | |
tree | 197b485e31aef0f2e7edd6716e24399711d2e4e1 /notmuch-time.c | |
parent | 1d528f890ad34d0de596b09024f35216947de063 (diff) |
notmuch: Fix off-by-one errors if a header is >200 characters long.
If a single header is more than 200 characters long a set of 'off by
one' errors cause memory corruption.
When allocating memory with:
a = malloc (len);
the last usable byte of the memory is 'a + len - 1' rather than 'a +
len'.
Fix the same bug when calculating the current offset should the buffer
used for collecting the output header need to be reallocated.
Diffstat (limited to 'notmuch-time.c')
0 files changed, 0 insertions, 0 deletions