1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix BZ #14602: strstr and strcasestr return wrong result.

This commit is contained in:
Maxim Kuvyrkov
2012-10-08 20:52:53 -07:00
parent ef1bb3618c
commit 57e605ba50
4 changed files with 40 additions and 18 deletions

View File

@ -35,10 +35,8 @@
#define AVAILABLE(h, h_l, j, n_l) \
(!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \
&& ((h_l) = (j) + (n_l)))
#define AVAILABLE1(h, h_l, j, n_l) (true)
#define AVAILABLE2(h, h_l, j, n_l) AVAILABLE (h, h_l, j, n_l)
#define CHECK_EOL (1)
#define RET0_IF_0(a) if (!a) goto ret0
#define AVAILABLE1_USES_J (0)
#include "str-two-way.h"
#undef strstr