commit | 56446f218af1133c802dad8e9e116f07f381846c | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Sep 06 12:48:22 2018 +0300 |
committer | Steve French <stfrench@microsoft.com> | Wed Sep 12 09:32:07 2018 -0500 |
tree | 1f35fa87689fcfdb7eead9d9e0b12164ce384e33 | |
parent | 8ad8aa353524d89fa2e09522f3078166ff78ec42 [diff] |
CIFS: fix wrapping bugs in num_entries() The problem is that "entryptr + next_offset" and "entryptr + len + size" can wrap. I ended up changing the type of "entryptr" because it makes the math easier when we don't have to do so much casting. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> CC: Stable <stable@vger.kernel.org>