CVE-2019-5736: runc container breakout
CVE-2019-5736: runc container breakout
Posted Feb 12, 2019 19:23 UTC (Tue) by sorokin (guest, #88478)Parent article: CVE-2019-5736: runc container breakout
> do {
> *output = malloc(sizeof(**output));
> } while (!*output);
> *output = malloc(sizeof(**output));
> } while (!*output);
Am I the only one person who consider these infinite loops a bad practice? I would say that the code should report the error. It also must preserve the state unchanged so the operation can be retried.
Having infinite loops like this especially in function that read whole file in memory looks very strange.
Apparently the authors are not consistent. They have asprintf() without looping in the same file.
