Fix ASAN crash and (get|set)_salt methods