SSP bugs

Robert Connolly cendres at videotron.ca
Thu Mar 18 12:50:42 PST 2004


There's an odd "maybe" bug for SSP. At seen on 
http://bugs.gentoo.org/show_bug.cgi?id=44931
If you have SSP installed please give this a try.

cat > vector.cc << "EOF"
#include <vector>
#include <algorithm>

int main()
{
         std::vector<long> i;
         i.push_back(4);
         i.push_back(3);
         i.push_back(2);
         i.push_back(1);
         std::sort(i.begin(), i.end());
}
EOF

g++ vector.cc -o vector -fstack-protector-all
./vector

If this segfaults or not, please report back. This might be a bug with a 
specific SSP version, or with GCC3.



More information about the hlfs-dev mailing list