This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via a2040db93b114fb9e1da9aeca1d0a1ea91699448 (commit) from a1786671550c5f83a6c9e7cecd9da4cead7b4cc9 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit a2040db93b114fb9e1da9aeca1d0a1ea91699448 Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Mon Jul 31 10:09:42 2017 +0300
linux-gen: crypto: check packet length during operation
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 68fc5658..ab42132a 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -242,6 +242,8 @@ int internal_encrypt(EVP_CIPHER_CTX *ctx, odp_crypto_op_param_t *param) int cipher_len; int ret;
+ ODP_ASSERT(in_pos + in_len <= odp_packet_len(pkt)); + while (in_len > 0) { uint32_t seglen = 0; /* GCC */ uint8_t *insegaddr = odp_packet_offset(pkt, in_pos, @@ -297,6 +299,8 @@ int internal_decrypt(EVP_CIPHER_CTX *ctx, odp_crypto_op_param_t *param) int cipher_len; int ret;
+ ODP_ASSERT(in_pos + in_len <= odp_packet_len(pkt)); + while (in_len > 0) { uint32_t seglen = 0; /* GCC */ uint8_t *insegaddr = odp_packet_offset(pkt, in_pos,
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/odp_crypto.c | 4 ++++ 1 file changed, 4 insertions(+)
hooks/post-receive