Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: remove TOCTOU in vmd config and defer disk detection
To:
Dave Voutila <dv@sisu.io>
Cc:
tech@openbsd.org, mlarkin@openbsd.org
Date:
Mon, 13 Apr 2026 08:14:18 -0600

Download raw body.

Thread
-               /* Try to derive the format from the file signature */
-               if ((fd = open(path, O_RDONLY)) != -1) {
-                       len = read(fd, buf, sizeof(buf));
-                       close(fd);

Ridiculous...