[platform] prevent possible u32 overflow