From 7e70c15821b6bdcc38c5e129d6332cc57edb9e0c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 27 Jan 2026 20:40:48 +0100 Subject: Add todo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- memmem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'memmem.c') diff --git a/memmem.c b/memmem.c index 5d6e711..739f7e0 100644 --- a/memmem.c +++ b/memmem.c @@ -17,6 +17,7 @@ libsimple_memmem(const void *hay_, size_t hayn, const void *sub_, size_t subn) if (subn == 1) return memchr(hay, *sub, hayn); + /* TODO segment search if pattern is too large */ next = alloca((subn + 1U) * sizeof(*next)); i = 0, j = SIZE_MAX; goto beginning; -- cgit v1.2.3-70-g09d2