commit | 82ea800b0fb2e7dd3d498c4973aa7eef364f208c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Apr 25 19:19:43 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 08 20:57:18 2012 +0200 |
tree | 1c042c0d0b613dbd2cb6fd4162b5ea88beb7faf3 | |
parent | 0ce3aa0c660991804f3a656126bfb09be7bcbf26 [diff] |
CLEANUP: pattern: ensure that payload and payload_lv always stay in the buffer A test was already performed which worked by pure luck due to integer types, otherwise it would have been possible to start checking for an offset out of the buffer's bounds if the buffer size was large enough to allow an integer wrap. Let's perform explicit checks and use unsigned ints for offsets instead of risking being hit later.