commit | 85c0a87cd117e83361932b2b160c9af178fdb21a | [log] [tgz] |
---|---|---|
author | Insu Yun <wuninsu@gmail.com> | Mon Jan 18 11:54:43 2016 -0500 |
committer | David Vrabel <david.vrabel@citrix.com> | Mon Feb 15 13:56:57 2016 +0000 |
tree | 3f29931c9be46cb4ed83c1bf75cf05b85293e2fd | |
parent | 52ba0746b3b44c86aee121babf3b2fd9b8f84090 [diff] |
xen: fix potential integer overflow in queue_reply When len is greater than UINT_MAX - sizeof(*rb), in next allocation, it can overflow integer range and allocates small size of heap. After that, memcpy will overflow the allocated heap. Therefore, it needs to check the size of given length. Signed-off-by: Insu Yun <wuninsu@gmail.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>