This test is impossible. The limits specified in a2ul() already cover
this.
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df#r136635300>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
free(mappings);
return NULL;
}
- if (m->lower + m->count < m->lower || m->upper + m->count < m->upper) {
- /* this one really shouldn't be possible given previous checks */
- fprintf(log_get_logfd(), _( "%s: subuid overflow detected.\n"), log_get_progname());
- exit(EXIT_FAILURE);
- }
}
return mappings;
}