commit | 18928af3a3e3692cc2f086f8f271538436fcbe2e | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Wed Mar 29 16:32:53 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 30 12:12:46 2017 +0200 |
tree | 3f80d883eec0be2d8136ca6a646b0203909a17ec | |
parent | acd4827ecabebccc9e57fe091de23a1ea5ec95b7 [diff] |
BUG/MEDIUM: peers: fix buffer overflow control in intdecode. A buffer overflow could happen if an integer is badly encoded in the data part of a msg received from a peer. It should not happen with authenticated peers (the handshake do not use this function). This patch makes the code of the 'intdecode' function more robust. It also adds some comments about the intencode function. This bug affects versions >= 1.6.