People struggling with addiction who share a lethal dose of drugs are being prosecuted as killers.