pardus-anka / 2013

Pardus-Anka 2013-devel package repository
16 stars 9 forks source link

wrong preColussi in your mageia patch #75

Open rurban opened 3 months ago

rurban commented 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])