add check to ensure struct actually fits within requested padding