A Malaysian student has been charged in a Sydney court with dishonesty offenses after a bank accidentally gave her a 4.6 million Australian dollar ($3.4 million) overdraft four years ago.

Waverley Local Court was told on Thursday that Christine Jiaxin Lee was 17 years old and had been living in Sydney for a year when Westpac Banking Corp. made the expensive mistake in 2012.

She was arrested at Sydney Airport on Wednesday night as she tried to fly to Malaysia still owing AU$3.3 million ($2.4 million) spent on what her lawyer described as luxury items including handbags. The rest of the money had been recovered.

The 21-year-old chemical engineering student was released on bail.