static int64 getnum(cchar *value)
{
    char    *junk;
    int64   num;

    value = stok(slower(value), " \t", &junk);
    if (sends(value, "kb") || sends(value, "k")) {
        num = stoi(value) * 1024;
    } else if (sends(value, "mb") || sends(value, "m")) {
        num = stoi(value) * 1024 * 1024;
    } else if (sends(value, "gb") || sends(value, "g")) {
        num = stoi(value) * 1024 * 1024 * 1024;
    } else if (sends(value, "byte") || sends(value, "bytes")) {
        num = stoi(value);
    } else {
        num = stoi(value);
    }
    if (num == 0) {
        num = MAXINT;
    }
    return num;
}
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.