This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: my strstr is broken


Hello Allin,

On Tue, Sep 11, 2018 at 08:58:07AM -0400, Allin Cottrell wrote:
> Since it's difficult to verify your long strings in email I tried the
> following variant of your test:
[...]
> Compiled with gcc 8.2.1 20180831 (Arch) the output is
> 
> s = 0x7ffe8771ae51
> strcmp(n, s) = 0

I attached my code as file to my first mail. But your program works as well:

s = (nil)
Segmentation fault

Some info about my environment:

Linux Kernel 4.9.124 (recently updated from 3.16)
Glibc 2.28
gcc 7.3.0

cu,
brunni

-- 
++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail brunni@netestate.de
++  https://www.netestate.de/
++
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]