Peaches are safe for dogs to eat when cut up in small pieces that are fresh and not from a can.
Although you shouldn't give the dog peaches too often because it can upset the dogs stomach and give the dog diarrhea as well.
Canned peaches contain what's known as Peach stones and those contain a sugar-cyanide compound called amygdalin which is harmful to dogs.