Skip to content

Commit 040ae9b

Browse files
committed
fix buffer size cov-1570526
1 parent 9d01b04 commit 040ae9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IntelPresentMon/AppCef/source/util/async/BrowseReadSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace p2c::client::util::async
4040
};
4141

4242
std::wstring payload;
43-
if (GetOpenFileNameW(&ofn) && wcsnlen_s(pathBuffer, sizeof(pathBuffer)) > 0) {
43+
if (GetOpenFileNameW(&ofn) && wcsnlen_s(pathBuffer, std::size(pathBuffer)) > 0) {
4444
std::wifstream file{ pathBuffer };
4545
payload = std::wstring(
4646
std::istreambuf_iterator<wchar_t>{ file },

0 commit comments

Comments
 (0)