The Reliability and Security of Deep Neural Networks