Open rurban opened 3 months ago
https://github.com/pardus-anka/2013/blob/6ca73a951ca1571b770a4b9588f3a8ec36d7d72f/kernel/kernel/files/patches/mageia/3rd-acerhk-0.5.35.patch#L481 misses a termination check, leading to endless loops when the pattern is not nul-terminated.
the fix is to add while (i < m && x[i] == x[i - k])
while (i < m && x[i] == x[i - k])
https://github.com/pardus-anka/2013/blob/6ca73a951ca1571b770a4b9588f3a8ec36d7d72f/kernel/kernel/files/patches/mageia/3rd-acerhk-0.5.35.patch#L481 misses a termination check, leading to endless loops when the pattern is not nul-terminated.
the fix is to add
while (i < m && x[i] == x[i - k])