diff options
author | Zahary Karadjov <zahary@gmail.com> | 2018-05-04 19:56:03 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-07 09:37:49 +0200 |
commit | 70ec344bbfd336e7a814ae03e0d5534a1cec351a (patch) | |
tree | ee48b8f0e545f7bbd43d0e383f4a559882e3831b /tinyc/tccasm.c | |
parent | cf13c5fba48e757531b3f9cb0e3aeae7710c849c (diff) | |
download | Nim-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 'tinyc/tccasm.c')
0 files changed, 0 insertions, 0 deletions