mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
Some rules test against character not being of a certain type. That may match with the \0 end-of-text marker, and thus actually step over it and let MatchRule continue with uninitialized data after it, leading to potential random behavior. This commits fixes it by making sure that we don't read past that \0. This seems to be changing the pronunciation of "capitals" from k'apIt@Lz to k'apIt,alz, I don't know why, I guess the rule for it was actually bogus?