Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firefox: check if
dlpi_name
is nullptr before using
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
x11-packages/firefox/0023-check-if-dlpi_name-is-nullptr-before-using.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
https://github.com/termux/termux-packages/issues/19050 | ||
|
||
--- a/gfx/gl/GLContext.cpp | ||
+++ b/gfx/gl/GLContext.cpp | ||
@@ -2619,6 +2619,8 @@ | ||
dl_iterate_phdr( | ||
[](dl_phdr_info* info, size_t size, void* data) { | ||
auto& foundPath = *reinterpret_cast<Maybe<nsAutoCString>*>(data); | ||
+ // XXX: `dlpi_name` may be nullptr, see termux/termux-packages#19050. | ||
+ if (info->dlpi_name == nullptr) return 0; | ||
nsDependentCString thisPath(info->dlpi_name); | ||
if (StringEndsWith(thisPath, "/swrast_dri.so"_ns)) { | ||
foundPath.emplace(thisPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters