From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756161AbbINQpz (ORCPT ); Mon, 14 Sep 2015 12:45:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59770 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753792AbbINQpy (ORCPT ); Mon, 14 Sep 2015 12:45:54 -0400 From: Vitaly Kuznetsov To: Andrew Morton Cc: Andy Shevchenko , Rasmus Villemoes , James Bottomley , linux-kernel@vger.kernel.org, "K. Y. Srinivasan" Subject: [PATCH v3 0/2] lib/string_helpers.c: fix infinite loop in string_get_size() Date: Mon, 14 Sep 2015 18:45:48 +0200 Message-Id: <1442249150-31650-1-git-send-email-vkuznets@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series prevents string_get_size() from entering an infinite loop on some inputs and adds several basic tests for string_get_size() including one to test for the issue. Changes since v2: - Add a comment explaining the fix to string_get_size() [James Bottomley] - Add string_get_size() tests [Andy Shevchenko] Vitaly Kuznetsov (2): lib/string_helpers.c: fix infinite loop in string_get_size() lib/test-string_helpers.c: add string_get_size() tests lib/string_helpers.c | 6 +++++- lib/test-string_helpers.c | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) -- 2.4.3