Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
HANDLE hFile = CreateFile(pFullPathName,
  0, 0, NULL, OPEN_EXISTING, 0, NULL
);
if (hFile == INVALID_HANDLE_VALUE) {
  /* handle error */
}
else {
	if (GetFileType(hFile) != FILE_TYPE_DISK) {
  		/* handle error */
	}
	/* operate on file */
}

Risk Assessment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

FIO46-C

2 (medium)

1 (unlikely)

2 (medium)

P4

L3

...