In general, over fermented dough is perfectly safe to eat - but that doesn't mean you'll want to. You can usually tell if your dough is over fermented by the strong smell of alcohol which results from yeast overgrowing and producing alcohol as a by-product. Dough that has been over fermented will usually have a sour taste and not rise in the oven due to the weakened gluten network.