C/C++

C or C++ : Invalid mask

Classification

Overview

The call umask(mask) sets the mask that changes access rights when creating new files. The permissions are as follows: ~mask & mode, where mode is the rights specified when creating a file. Thus, using the desired access rights as a parameter mask may lead to unwanted behavior of the program.

MEDIUM

DerScanner Severity Score

Check your C/C++ code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.