Fix potential out-of-bounds read in CopyFrom1Bit function, note that this function is not currently used anywhere.