2029 |
len = q - dbuffer; |
len = q - dbuffer; |
2030 |
|
|
2031 |
/* Move the data to the end of the buffer so that a read over the end of |
/* Move the data to the end of the buffer so that a read over the end of |
2032 |
the buffer will be seen by valgrind, even if it doesn't cause a crash. */ |
the buffer will be seen by valgrind, even if it doesn't cause a crash. If |
2033 |
|
we are using the POSIX interface, we must include the terminating zero. */ |
2034 |
|
|
2035 |
memmove(bptr + buffer_size - len, bptr, len); |
#if !defined NOPOSIX |
2036 |
bptr += buffer_size - len; |
if (posix || do_posix) |
2037 |
|
{ |
2038 |
|
memmove(bptr + buffer_size - len - 1, bptr, len + 1); |
2039 |
|
bptr += buffer_size - len - 1; |
2040 |
|
} |
2041 |
|
else |
2042 |
|
#endif |
2043 |
|
{ |
2044 |
|
memmove(bptr + buffer_size - len, bptr, len); |
2045 |
|
bptr += buffer_size - len; |
2046 |
|
} |
2047 |
|
|
2048 |
if ((all_use_dfa || use_dfa) && find_match_limit) |
if ((all_use_dfa || use_dfa) && find_match_limit) |
2049 |
{ |
{ |