liblouis icon indicating copy to clipboard operation
liblouis copied to clipboard

compileTranslationTable: Check replacement characters []

Open sthibaul opened this issue 3 years ago • 1 comments

We can check at compile-time that we always have exactly one startReplace character followed by one endReplace.

This is needed otherwise when a table misses the endReplace (as tables/hu-hu-g1_braille_input.cti fixed here), match has startReplace != -1 but endReplace == -1, and eventually passDoAction sets newPos to -1, and other functions such as setBefore underflow the buffer.

sthibaul avatar Jul 21 '22 22:07 sthibaul

Nice find.

bertfrees avatar Jul 29 '22 17:07 bertfrees