If you’re looking for cannabalistic shipwrecks and legal history, I’d advise looking up the case of Her Majesty The Queen v. Tom Dudley and Edwin Stephens. It involved murder charges for two wreck survivors who killed a comatose third survivor to consume, and the defense of necessity against those charges.