fix memory overflow gcc bug in centos6