Core dumps can contain information that an attacker might be able to exploit and they take up a large amount of disk space.
To prevent the system creating core dumps when the operating system terminates a program due to a segment violation or other unexpected error, add the following line to /etc/security/limits.conf:
... * hard core 0