Lines Matching defs:len

1750 		uint32_t len, tmp;
1751 len = scope_datum->decl_ids_len;
1752 if (len < 2) {
1756 tmp = scope_datum->decl_ids[len-2];
1757 scope_datum->decl_ids[len-2] = scope_datum->decl_ids[len-1];
1758 scope_datum->decl_ids[len-1] = tmp;
2064 size_t len;
2075 len = le32_to_cpu(buf[0]);
2076 if(str_read(&key, fp, len))
2098 size_t len, nel;
2110 len = le32_to_cpu(buf[0]);
2111 if (zero_or_saturated(len))
2123 key = malloc(len + 1);
2126 rc = next_entry(key, fp, len);
2129 key[len] = 0;
2246 size_t len, len2, ncons, nel;
2258 len = le32_to_cpu(buf[0]);
2259 if (zero_or_saturated(len))
2275 key = malloc(len + 1);
2278 rc = next_entry(key, fp, len);
2281 key[len] = 0;
2357 size_t len;
2371 len = le32_to_cpu(buf[0]);
2372 if (zero_or_saturated(len))
2379 key = malloc(len + 1);
2382 rc = next_entry(key, fp, len);
2385 key[len] = 0;
2436 size_t len;
2462 len = le32_to_cpu(buf[pos]);
2463 if (zero_or_saturated(len))
2506 key = malloc(len + 1);
2509 rc = next_entry(key, fp, len);
2512 key[len] = 0;
2676 uint32_t buf[4], len, stype, ttype, tclass, otype;
2683 len = le32_to_cpu(buf[0]);
2684 if (zero_or_saturated(len))
2687 name = calloc(len + 1, sizeof(*name));
2691 rc = next_entry(name, fp, len);
2761 uint32_t buf[3], len, ttype, tclass, ndatum;
2768 len = le32_to_cpu(buf[0]);
2769 if (zero_or_saturated(len))
2772 name = calloc(len + 1, sizeof(*name));
2776 rc = next_entry(name, fp, len);
2876 size_t nel, len;
2959 len = le32_to_cpu(buf[0]);
2960 if (zero_or_saturated(len))
2963 c->u.name = malloc(len + 1);
2966 rc = next_entry(c->u.name, fp, len);
2969 c->u.name[len] = 0;
2987 size_t nel, len;
3026 len = le32_to_cpu(buf[0]);
3027 if (zero_or_saturated(len) || len > 63)
3029 c->u.name = malloc(len + 1);
3032 rc = next_entry(c->u.name, fp, len);
3035 c->u.name[len] = 0;
3075 len = le32_to_cpu(buf[0]);
3076 if (len == 0 || len > IB_DEVICE_NAME_MAX - 1)
3083 c->u.ibendport.dev_name = malloc(len + 1);
3086 rc = next_entry(c->u.ibendport.dev_name, fp, len);
3089 c->u.ibendport.dev_name[len] = 0;
3122 len = le32_to_cpu(buf[1]);
3123 if (zero_or_saturated(len))
3125 c->u.name = malloc(len + 1);
3128 rc = next_entry(c->u.name, fp, len);
3131 c->u.name[len] = 0;
3183 size_t nel, nel2, len, len2;
3198 len = le32_to_cpu(buf[0]);
3199 if (zero_or_saturated(len))
3204 newgenfs->fstype = malloc(len + 1);
3209 rc = next_entry(newgenfs->fstype, fp, len);
3215 newgenfs->fstype[len] = 0;
3245 len = le32_to_cpu(buf[0]);
3246 if (zero_or_saturated(len))
3248 newc->u.name = malloc(len + 1);
3252 rc = next_entry(newc->u.name, fp, len);
3255 newc->u.name[len] = 0;
3272 len = strlen(newc->u.name);
3274 if (len > len2)
3332 size_t len;
3346 len = le32_to_cpu(buf[0]);
3347 if (zero_or_saturated(len))
3354 key = malloc(len + 1);
3357 rc = next_entry(key, fp, len);
3360 key[len] = 0;
3420 uint32_t buf[2], len;
3432 len = le32_to_cpu(buf[0]);
3433 if (zero_or_saturated(len))
3438 key = malloc(len + 1);
3441 rc = next_entry(key, fp, len);
3444 key[len] = 0;
3466 uint32_t buf[3], len;
3478 len = le32_to_cpu(buf[0]);
3479 if(zero_or_saturated(len))
3485 key = malloc(len + 1);
3488 rc = next_entry(key, fp, len);
3491 key[len] = 0;
3513 uint32_t buf[2], len;
3540 len = le32_to_cpu(buf[0]);
3542 for (i = 0; i < len; i++) {
3721 uint32_t buf[1], len;
3730 len = le32_to_cpu(buf[0]);
3732 for (i = 0; i < len; i++) {
3840 uint32_t buf[3], nel, i, len;
3867 len = le32_to_cpu(buf[0]);
3868 if (zero_or_saturated(len))
3871 ftr->name = malloc(len + 1);
3875 rc = next_entry(ftr->name, fp, len);
3878 ftr->name[len] = 0;
4230 size_t len, nprim, nel;
4255 len = buf[1];
4256 if (len == 0 || len > POLICYDB_STRING_MAX_LENGTH) {
4257 ERR(fp->handle, "policydb string length %s ", len ? "too long" : "zero");
4261 policydb_str = malloc(len + 1);
4264 "string of length %zu", len);
4267 rc = next_entry(policydb_str, fp, len);
4273 policydb_str[len] = 0;
4389 len = le32_to_cpu(buf[0]);
4390 if (zero_or_saturated(len))
4392 if ((p->name = malloc(len + 1)) == NULL) {
4395 if ((rc = next_entry(p->name, fp, len)) < 0) {
4398 p->name[len] = '\0';
4402 len = le32_to_cpu(buf[0]);
4403 if (zero_or_saturated(len))
4405 if ((p->version = malloc(len + 1)) == NULL) {
4408 if ((rc = next_entry(p->version, fp, len)) < 0) {
4411 p->version[len] = '\0';