Merge "Add validity check to detect invalid PDUs." into sc-dev