Closed avagin closed 1 month ago
The unix_conf_op function reads the size of the sysctl entry array twice. gcc thinks that it can lead to a time-of-check to time-of-use (TOCTOU) race condition if the array size changes between the two reads.
Fixes #2398
@avagin Would you be able to add a "Signed-off-by" line in the commit message?
Done. Thanks.
The unix_conf_op function reads the size of the sysctl entry array twice. gcc thinks that it can lead to a time-of-check to time-of-use (TOCTOU) race condition if the array size changes between the two reads.
Fixes #2398