Time-of-check to time-of-use: Difference between revisions

Content deleted Content added
Adding short description: "Class of software bugs"
Examples: examples need sources
Line 40:
 
== Examples ==
{{Unsourced section|date=July 2022}}
 
In [[Unix]], the following [[C (programming language)|C]] code, when used in a <code>[[setuid]]</code> program, has a TOCTOU bug:
<syntaxhighlight lang="c">