summary refs log tree commit diff stats
path: root/nimsuggest
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-05-04 19:56:03 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-05-07 09:37:49 +0200
commit70ec344bbfd336e7a814ae03e0d5534a1cec351a (patch)
treeee48b8f0e545f7bbd43d0e383f4a559882e3831b /nimsuggest
parentcf13c5fba48e757531b3f9cb0e3aeae7710c849c (diff)
downloadNim-70ec344bbfd336e7a814ae03e0d5534a1cec351a.tar.gz
bugfix: strutils.find was broken for strings with uneven number of chars
For some reason, the problem was manifesting only inside the VM, it was
detecting an attempt to read past the string end (i.e. the formerly
accessible null byte).

To catch such errors, strutils now performs static tests too.

I've solved the problem by re-implementing the Boyer-Moore algotihm
in a cleaner way and I took the opportunity to make some other
optimisations to strutils.
Diffstat (limited to 'nimsuggest')
0 files changed, 0 insertions, 0 deletions