You should also stop. If you overtake, you risk running down the pedestrian or causing an accident. The vehicle in front may appear (from your obscured point of view) to have stopped to let a pedestrian cross, but the vehicle in front may be masking something more serious, like someone laying injured in the road.