fixed potential integer overflow bug in assign_keys (used by read_local)
fixed potential integer overflow bug in assign_keys (used by read_local)

devinamatthews/ctf,devinamatthews/ctf,devinamatthews/ctf