lkml.org 
[lkml]   [2015]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v4 0/2] lib/string_helpers.c: fix infinite loop in string_get_size()
Date
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 v3:
- NULL termination fixes in PATCH 2/2 [Rasmus Villemoes, 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



\
 
 \ /
  Last update: 2015-09-15 16:21    [W:0.034 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site