How safe is stinky tofu since it does smell like feces? Is there risk of bad prep when making it or coming out of places with questionable food safety practice?
To answer your question: You can't know without sending a sample to a lab.
Your safest course of action is to ditch it.
There are safe bacteria in food and there are unsafe bacteria in food, and it's not easy to establish which bacteria has contaminated your food.
The various food (and drugs) administrations around the world have established certain safety procedures. This answer might help you.