Skip to content

Commit

Permalink
Fix index out of bounds with dialog accept_types description (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaragunde authored and magreenblatt committed Sep 16, 2024
1 parent 4deb487 commit 1d7a1f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libcef/browser/file_dialog_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ CefFileDialogManager::MaybeRunDelegate(
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
}
accept_extensions.push_back(ext_str);
accept_descriptions.push_back(descriptions[i]);
if (descriptions.size() == extensions.size()) {
accept_descriptions.push_back(descriptions[i]);
}
}
}

Expand Down

0 comments on commit 1d7a1f9

Please sign in to comment.