* add code to prevent heap attacks by exploiting dim=bignum and partition_codewords = partion_values * correctly handle the nonsensical codebook.dim==0 case * dd checks/rejection for absurdly huge codebooks CVE-2008-1419, CVE-2008-1420, CVE-2008-1423