mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
regex: bugfix out of bound with gcc "-fsanitize=address" (#9715)
This commit is contained in:
parent
b8e9f085eb
commit
f1bda88964
@ -1690,7 +1690,7 @@ pub fn (mut re RE) match_base(in_txt &byte, in_txt_len int ) (int,int) {
|
||||
}
|
||||
|
||||
// we're out of text, manage it
|
||||
if state.i > in_txt_len || m_state == .new_line {
|
||||
if state.i >= in_txt_len || m_state == .new_line {
|
||||
//println("Finished text!!")
|
||||
src_end = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user