for (char **pp = p->p_aliases; *pp; ++pp, ++pp_size)
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *pp, internal_strlen(*pp) + 1);
- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, p->p_aliases,
- pp_size * sizeof(char **));
+ COMMON_INTERCEPTOR_WRITE_RANGE(ctx, p->p_aliases, pp_size * sizeof(char *));
}
INTERCEPTOR(struct __sanitizer_protoent *, getprotoent) {
for (char **nn = n->n_aliases; *nn; ++nn, ++nn_size)
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *nn, internal_strlen(*nn) + 1);
- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases,
- nn_size * sizeof(char **));
+ COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases, nn_size * sizeof(char *));
}
return n;
}
for (char **nn = n->n_aliases; *nn; ++nn, ++nn_size)
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *nn, internal_strlen(*nn) + 1);
- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases,
- nn_size * sizeof(char **));
+ COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases, nn_size * sizeof(char *));
}
return n;
}
for (char **nn = n->n_aliases; *nn; ++nn, ++nn_size)
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, *nn, internal_strlen(*nn) + 1);
- COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases,
- nn_size * sizeof(char **));
+ COMMON_INTERCEPTOR_WRITE_RANGE(ctx, n->n_aliases, nn_size * sizeof(char *));
}
return n;
}
assert(ntp && ntp->n_name);
assert(ntp->n_addrtype == 2);
assert(ntp->n_net == 127);
+ char **aliases = ntp->n_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endnetent();
}
assert(ntp && ntp->n_name);
assert(ntp->n_addrtype == 2);
assert(ntp->n_net == 127);
+ char **aliases = ntp->n_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endnetent();
}
assert(ntp && ntp->n_name);
assert(ntp->n_addrtype == 2);
assert(ntp->n_net == 127);
+ char **aliases = ntp->n_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endnetent();
}
struct protoent *ptp = getprotoent();
assert(ptp && ptp->p_name);
assert(ptp->p_proto == 0);
+ char **aliases = ptp->p_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endprotoent();
}
struct protoent *ptp = getprotobyname("tcp");
assert(ptp && ptp->p_name);
assert(ptp->p_proto == 6);
+ char **aliases = ptp->p_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endprotoent();
}
struct protoent *ptp = getprotobynumber(1);
assert(ptp && ptp->p_name);
assert(ptp->p_proto == 1);
+ char **aliases = ptp->p_aliases;
+ while (aliases) {
+ printf("%s\n", *aliases);
+ aliases++;
+ }
endprotoent();
}