From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58380 invoked by alias); 11 Sep 2018 10:27:18 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 58358 invoked by uid 89); 11 Sep 2018 10:27:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:TCP, Tel, tel, Fax X-HELO: brunni.mail.netestate.de Received: from brunni.mail.netestate.de (HELO brunni.mail.netestate.de) (81.209.177.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Sep 2018 10:27:15 +0000 Received: (qmail 4675 invoked from network); 11 Sep 2018 10:27:12 -0000 Received: from localhost.netestate.de (HELO fiano.netestate.de) (127.0.0.1) by localhost.netestate.de with ESMTP; 11 Sep 2018 10:27:12 -0000 Received: from fiano.netestate.de (81.209.177.7) by brunni.mail.netestate.de with SMTP via TCP; Tue, 11 Sep 2018 12:27:12 +0200 Received: (qmail 31898 invoked by uid 503); 11 Sep 2018 10:27:11 -0000 Date: Tue, 11 Sep 2018 10:27:00 -0000 From: Michael Brunnbauer To: libc-help@sourceware.org Subject: Re: my strstr is broken Message-ID: <20180911102711.GA31876@netestate.de> References: <20180910144752.GA29636@netestate.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <20180910144752.GA29636@netestate.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00001.txt.bz2 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 4849 hi all, I assume it cannot be reproduced and is limited to my build? Any ideas/hints for me? The fact that the needle is 513 bytes and occurs at an offset of 513 bytes in the haystack should provide some clue? cu, brunni On Mon, Sep 10, 2018 at 04:47:52PM +0200, Michael Brunnbauer wrote: >=20 > hi >=20 > can someone reproduce this with 2.28 (program exits with return code 255)? >=20 > ----------------------------------------------------------- > #include >=20 > int main (void) > { > char* i =3D " = = = = = = = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; > char* n =3D "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxx"; > if (!strstr(i,n)) return 255; > return 0; > } > ----------------------------------------------------------- >=20 > cu, > brunni >=20 > --=20 > ++ Michael Brunnbauer > ++ netEstate GmbH > ++ Geisenhausener Stra=DFe 11a > ++ 81379 M=FCnchen > ++ Tel +49 89 32 19 77 80 > ++ Fax +49 89 32 19 77 89=20 > ++ E-Mail brunni@netestate.de > ++ https://www.netestate.de/ > ++ > ++ Sitz: M=FCnchen, HRB Nr.142452 (Handelsregister B M=FCnchen) > ++ USt-IdNr. DE221033342 > ++ Gesch=E4ftsf=FChrer: Michael Brunnbauer, Franz Brunnbauer > ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel > #include >=20 > int main (void) > { > char* i =3D " = = = = = = = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; > char* n =3D "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= xxxx"; > if (!strstr(i,n)) return 255; > return 0; > } --=20 ++ Michael Brunnbauer ++ netEstate GmbH ++ Geisenhausener Stra=DFe 11a ++ 81379 M=FCnchen ++ Tel +49 89 32 19 77 80 ++ Fax +49 89 32 19 77 89=20 ++ E-Mail brunni@netestate.de ++ https://www.netestate.de/ ++ ++ Sitz: M=FCnchen, HRB Nr.142452 (Handelsregister B M=FCnchen) ++ USt-IdNr. DE221033342 ++ Gesch=E4ftsf=FChrer: Michael Brunnbauer, Franz Brunnbauer ++ Prokurist: Dipl. Kfm. (Univ.) Markus Hendel --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 163 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAluXmH8ACgkQvo+oDi22Hrl3FgCcDX5jR30pwHMsId9q/yVPPNCT 5aMAmwVADekQqp+byP6rrw6sKeb6VhAK =BPdH -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--