YOUR QUALIFICATIONS You should be checked out and current on the aircraft. Unless you have to take over the controls you are supernumerary and cannot log any flying time.
The above strongly suggests that if the Safety Pilot has to take over then they will log flight time. The only flight time they could log would be as PIC.