Fix out-of-bounds writes in singularity_registry_{get,set}
Fix out-of-bounds writes in singularity_registry_{get,set}

Signed-off-by: Felix Abecassis <55aebb135999a2c3fc3e3a88716154833ef9e5ed@nvidia.com>

Trophime/singularity,Trophime/singularity,Trophime/singularity,Trophime/singularity