Transferring hacked Pokémon from GBA games (Ruby, Sapphire, Emerald, FireRed, LeafGreen) to DS titles (Diamond, Pearl, Platinum) can corrupt your save file. Hacked Pokémon may contain invalid stats, moves, or abilities that cause freezes, crashes, or glitches. Modified items can also trigger issues.
To avoid corruption, only transfer legitimately obtained Pokémon and items. If unsure of a Pokémon's legitimacy, do not transfer it.