commit | 2e1dd3d21350ad5eef7f688eee0c75e140430190 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Sep 23 22:56:07 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Sep 23 23:52:14 2009 +0200 |
tree | 0efa0f7af04f6eec9fdc0efbebb51d3cf45c8e13 | |
parent | fb0e9209a905e4e4fe1b913bd0d912066fcc3a2c [diff] |
[BUG] fix buffer_skip() and buffer_si_getline() to correctly handle wrap-arounds Those two functions did not correctly deal with full buffers and/or buffers that wrapped around. Buffer_skip() was even able to incorrectly set buf->w further than the end of buffer if its len argument was wrong, and buffer_si_getline() was able to incorrectly return a length larger than the effective buffer data available.