Abhi,
1. Assuming you are on unix. You can limit the size of a core by setting the ulimits for a user.
2. You need to address the root cause of why you are getting these core dumps as opposed to just trying to restrict the size of the core dump.
Cheers,
Amerjit