Donald is right. To avoid unexpected problems, You may want to ensure you have more than six months validity on your passport when you travel.
I am not sure if that is a strict requirement more from Airlines than anyone. Start with airlines...and then connect with Canadian embassy with that question
It is better to have your passport with a six month validity on it.
Thanks! Your answer is awaiting moderation.