Yeah it's a tricky area. In multiple cases I have been tempted to badmouth someone or a company in an interview type context, but have almost always been glad that I avoided it and just found a more subdued (but still honest) way to express my feelings.