This glitch only works on the japanese version of the game. It is perfectly safe and will not corrupt your save data.
1) Have Ditto hold the 'item-to-clone.'
2) Go into Double Battle.
3) Have Ditto transform into enemy.
4) Have other Pokemon steal (use Thief) on Ditto.
5) Viola, you now have 2 of the same item.