Linking to libssp makes sprintf infinite recursive
Here is an example:
kind: manual
build-depends:
- bootstrap-import.bst
config:
build-commands:
- |
cat >sprintf-test.c <<EOF
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
char buf[256];
sprintf(buf, "test-%i", atoi(argv[1]));
return 0;
}
EOF
- gcc -std=c99 $CFLAGS $LDFLAGS -W -Wall -g -o sprintf-test sprintf-test.c -lssp
- ./sprintf-test 42
This can be reproduced on aarch64 and should also on powerpcle. For x86_64 it reproduces on !2113 (merged).
avahi for example tries to link to libssp.
Debian does not provide libssp. We should look at what fedora does. Maybe we should avoid distributing it.