Final destination entry may be the bigger issue than just getting on the plane
https://travel.gc.ca/destinations/hungaryRegular Canadian passport
Your passport must be valid for at least 3 months beyond the date you expect to leave the Schengen area.