Fix memory corruption when mask is specified in the match key.
Fix memory corruption when mask is specified in the match key.

PrincetonUniversity/p4c-behavioral,pierce-m/p4c-behavioral,pierce-m/p4c-behavioral,p4lang/p4c-behavioral,pierce-m/p4c-behavioral,PrincetonUniversity/p4c-behavioral,p4lang/p4c-behavioral,p4lang/p4c-behavioral,USC-NSL/p4c-behavioral,USC-NSL/p4c-behavioral,PrincetonUniversity/p4c-behavioral,USC-NSL/p4c-behavioral