for (;;) {
_cleanup_free_ void *buf = NULL;
+ /* Silence static analyzers */
+ assert(bufsize <= SIZE_MAX - ALIGN(sizeof(struct passwd)));
buf = malloc0(ALIGN(sizeof(struct passwd)) + bufsize);
if (!buf)
return -ENOMEM;
for (;;) {
_cleanup_free_ void *buf = NULL;
+ /* Silence static analyzers */
+ assert(bufsize <= SIZE_MAX - ALIGN(sizeof(struct passwd)));
buf = malloc0(ALIGN(sizeof(struct passwd)) + bufsize);
if (!buf)
return -ENOMEM;
for (;;) {
_cleanup_free_ void *buf = NULL;
+ /* Silence static analyzers */
+ assert(bufsize <= SIZE_MAX - ALIGN(sizeof(struct group)));
buf = malloc0(ALIGN(sizeof(struct group)) + bufsize);
if (!buf)
return -ENOMEM;
for (;;) {
_cleanup_free_ void *buf = NULL;
+ /* Silence static analyzers */
+ assert(bufsize <= SIZE_MAX - ALIGN(sizeof(struct group)));
buf = malloc0(ALIGN(sizeof(struct group)) + bufsize);
if (!buf)
return -ENOMEM;