From 1c3e4fccc07221d75bfbd14ac53038342d3d08ea Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 27 Oct 2020 21:50:53 -0500 Subject: [PATCH] Bugfix: FSS Extended List object detection is invalid. Not sure how I let this one slip through. The code is checking for an EOL if found checks to see if that EOL is a graph...which is never the case. What I meant to do is more likely breaking on EOL or breaking on graph. --- level_1/fl_fss/c/fss_extended_list.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/level_1/fl_fss/c/fss_extended_list.c b/level_1/fl_fss/c/fss_extended_list.c index 1892f93..6743784 100644 --- a/level_1/fl_fss/c/fss_extended_list.c +++ b/level_1/fl_fss/c/fss_extended_list.c @@ -106,12 +106,12 @@ extern "C" { while (range->start <= range->stop && range->start < buffer->used) { - if (buffer->string[range->start] == f_fss_eol) { - status = f_fss_is_graph(*buffer, *range); - if (F_status_is_error(status)) break; + if (buffer->string[range->start] == f_fss_eol) break; - if (status == F_true) break; - } + status = f_fss_is_graph(*buffer, *range); + if (F_status_is_error(status)) break; + + if (status == F_true) break; status = f_utf_buffer_increment(*buffer, range, 1); if (F_status_is_error(status)) break; -- 1.8.3.1