From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by dpdk.org (Postfix) with ESMTP id EA11B559A for ; Fri, 14 Jul 2017 12:35:58 +0200 (CEST) Received: by mail-pg0-f68.google.com with SMTP id y129so10247008pgy.3 for ; Fri, 14 Jul 2017 03:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KPHqMAQziqU60QFt8fpdsQCFiBUti6FrTgfNO+Nq6Hc=; b=wJdD3ffGEAxFLzdrbG6BkbuxAR4aKRDCK7lNJJ0U+oE7x8N4QHB3cevI+Kcyv0qQw4 weRBIo1YDndQwCgsui+7yWVg7pQpPpCFbL6W2Mipa3bCgLWraEmBqDAy7sw7/YLuWm7S rU0Jh4GJPDvixSWDYJEWjFQYPd+QyduGu+KV8kESPXh03fmdw+jZiN8dxQhZ5Smrv0Dv ZyKN7FZxJIOmQU8tNueavv3Eqa/jH6hEtCXhUNmioJT7bJsBKAf8hQlkaJmEGe16gOLj IH1dQC7Wv8sYkSeuiuLWBZLWrNcwCv3CFqZcosMpadWGHJ2JfE1Dw89QMsYr0Kh3XOpV zaPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KPHqMAQziqU60QFt8fpdsQCFiBUti6FrTgfNO+Nq6Hc=; b=aRAsG0ZTbeWvljFPYX2Uqqqx1dGEbkcN0ehWCCCMp+ROWI3L2EyAN3jUDl64+Mty4a pLa52xPapq6G9GLVtRfJKOWCweXCJMSgLCw1DlKC/xuhVeyo9LLOQ1bXixJPVU5bSYEm /IdnKrjKe5d9M5x+MI0V/H7ShWasyv2jTWPup2aNqhh4vh5jzbK4pnBPed7wbjs/6FT6 8AaGMlu81Q6D4dIUsWTzPKzmwG9tYysWyJeIrUCx7Et9w9ndo/ZuGY9vlQIDbX6vcoRJ kZQ8McVYMuSU+lFmZZf/N5v7flDE6InDZqaJFa245sd85OS+K/KOmu0ijtlkHvYPOcKG EnJg== X-Gm-Message-State: AIVw1130FVJwcp46qD1PHfJqAkzfZLdzH89OiHdMhQEwMnzqb0fE7pod k4yD375+tR+ulzG+V+OiNWWg X-Received: by 10.98.245.207 with SMTP id b76mr4475383pfm.113.1500028558280; Fri, 14 Jul 2017 03:35:58 -0700 (PDT) Received: from localhost.localdomain ([180.158.48.171]) by smtp.gmail.com with ESMTPSA id y205sm15273553pfb.124.2017.07.14.03.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jul 2017 03:35:57 -0700 (PDT) From: Yuanhan Liu To: Pablo de Lara Cc: dpdk stable Date: Fri, 14 Jul 2017 18:33:47 +0800 Message-Id: <1500028450-25989-23-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500028450-25989-1-git-send-email-yliu@fridaylinux.org> References: <1500028450-25989-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'test/crypto: fix overflow' has been queued to LTS release 16.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2017 10:35:59 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/19/17. So please shout if anyone has objections. Thanks. --yliu --- >>From b4e8455da1ecd9adabcf59e05010f184ee5dfb4f Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Wed, 28 Jun 2017 10:31:03 +0100 Subject: [PATCH] test/crypto: fix overflow [ upstream commit 405268c73de200733afe7eaa60d003be1f86e855 ] In one of the SNOW3G unit tests, insufficient memory was allocated, leading to a buffer overflow. Fixes: 2b52e1e95aab ("app/test: add SNOW 3G UEA2 with offset") Signed-off-by: Pablo de Lara --- app/test/test_cryptodev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 872f8b4..2754653 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -2944,8 +2944,7 @@ test_snow3g_encryption_offset_oop(const struct snow3g_test_data *tdata) rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); #endif - expected_ciphertext_shifted = rte_malloc(NULL, - ceil_byte_length(plaintext_len + extra_offset), 0); + expected_ciphertext_shifted = rte_malloc(NULL, plaintext_len, 8); TEST_ASSERT_NOT_NULL(expected_ciphertext_shifted, "failed to reserve memory for ciphertext shifted\n"); -- 2.7.4