| 2027 |
} |
} |
| 2028 |
*q = 0; |
*q = 0; |
| 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. If |
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. */ |
we are using the POSIX interface, we must include the terminating zero. */ |
| 2034 |
|
|
| 2035 |
#if !defined NOPOSIX |
#if !defined NOPOSIX |
| 2036 |
if (posix || do_posix) |
if (posix || do_posix) |
| 2037 |
{ |
{ |
| 2038 |
memmove(bptr + buffer_size - len - 1, bptr, len + 1); |
memmove(bptr + buffer_size - len - 1, bptr, len + 1); |
| 2039 |
bptr += buffer_size - len - 1; |
bptr += buffer_size - len - 1; |
| 2040 |
} |
} |
| 2041 |
else |
else |
| 2042 |
#endif |
#endif |
| 2043 |
{ |
{ |
| 2044 |
memmove(bptr + buffer_size - len, bptr, len); |
memmove(bptr + buffer_size - len, bptr, len); |
| 2045 |
bptr += buffer_size - len; |
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 |
{ |
{ |