Corn is safe to feed to dogs as long as you feed them while they are still "on the cob".
If your dog eats the cob he could choke or block part of his digestive system.
In addition the husk has the same texture and nutritional value as an old pair of boots.
Make sure your dog only eats corn that has been taken off the husk!