Second-order Dirac superconductors and magnetic field induced Majorana hinge modes