Name: Anonymous 2009-10-30 14:03
#include <unistd.h>
int main(int argc, char *argv[])
{
return execl("/bin/true", NULL);
}This makes GNU true segfault in a call to strrchr().
#include <unistd.h>
int main(int argc, char *argv[])
{
return execl("/bin/true", NULL);
}/*
True
Copyright (C)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* Main include header for the True library */
#ifndef _TRUE_H
#define _TRUE_H
int true(void) { return 1; }
#endif