Merge: lib: fix semantic on has_substring on extreme cases
authorJean Privat <jean@pryen.org>
Wed, 29 Oct 2014 19:11:38 +0000 (15:11 -0400)
committerJean Privat <jean@pryen.org>
Wed, 29 Oct 2014 19:11:38 +0000 (15:11 -0400)
commit45694054202743c26683f9a695df64815c4d0e7e
tree3f7ec7a5382525e77bc9af3b68651eced5bcb8ca
parentc59191300619dafa8205d971100bcbe04bbe21b8
parent794079a34ea116757a81f630a27853a513f20b79
Merge: lib: fix semantic on has_substring on extreme cases

And avoid illegal access outside the string.

Detected thanks to the interpreted that warns on out-of-bound accesses in nativestrings.

Pull-Request: #854
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/standard/string.nit