Skip to content

Fix reading past the end of the string in Unix.FSearch.

Rika requested to merge runewalsh/source:0902 into main

There is a bug in Unix.FSearch that causes my flawless MR to crash on tw0902.pp. (Found it in two days and 60 commits with a binary search, inserting halts in different places and running the pipeline. :D)

FSearch splits the directory list with #0s, e.g. path/a;another_path/b;yet_another_path/cpath/a#0another_path/b#0yet_another_path/c, and then each #0 causes its character counter to become off by 1 and to scan 1 more character past the terminating #0.

Just another proof of how good !694 is.

Merge request reports