bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strstr in gnulib


From: Дилян Палаузов
Subject: strstr in gnulib
Date: Mon, 08 Nov 2010 15:31:01 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

Hello,

When I use the latest strstr implemenation from gnulib in git, the following program crashes (causes Segmentation fault):

#include <string.h>
#include <stdio.h>

void main() {
  char *find = strstr ("**AB** **CD** **AB** **CD** **CD**", "**CD**");
  printf("%s\n", find);
}

It does not crash when I use strstr from libc-2.9 .

Със здраве
  Дилян



reply via email to

[Prev in Thread] Current Thread [Next in Thread]