[Bug 740484] mawk RE matching can return invalid results causing unexpected behavior and crashes