My worry in that position wouldn't be getting fired, it would be getting the conversation (or, if it's got that far, the offer) spiked because someone in HR thinks they can either keep me in my current role by scaring off anyone I might talk to, or share my salary information so they can low-ball me, thereby stopping me from getting a pay bump.