Fix possible invalid write and overflow issues in kmemmem, kstrstr and kstrnstr
Fix possible invalid write and overflow issues in kmemmem, kstrstr and kstrnstr: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix possible invalid write and overflow issues in kmemmem, kstrstr and kstrnstr
The task
**Title:** Fix possible invalid write and overflow issues in kmemmem, kstrstr and kstrnstr
Part of scalingX/life-science-SWE1.0.