Messages in this thread | | | From | Vitaly Kuznetsov <> | Subject | [PATCH v5 0/2] lib/string_helpers.c: fix infinite loop in string_get_size() | Date | Thu, 17 Sep 2015 11:44:02 +0200 |
| |
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 v4: - Signle quotes in pr_warn() to see empty strings [Andy Shevchenko]. - Check for test validity compile-time [Rasmus Villemoes, Andy Shevchenko]. - All __test_string_get_size() arguments are const.
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 | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-)
-- 2.4.3
| |