Bug 33032
| Summary: | Incorrect usage of dlopen with paths in Chromium WebGL | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Evan Martin <evan> |
| Component: | WebGL | Assignee: | Kenneth Russell <kbr> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Other | ||
| OS: | Linux | ||
Evan Martin
In WebKit/chromium/src/GraphicsContext3D.cpp
const char* libNames[] = {
"/usr/lib/libGL.so.1",
"/usr/lib32/libGL.so.1",
"/usr/lib64/libGL.so.1",
};
for (int i = 0; i < sizeof(libNames) / sizeof(const char*); i++) {
libGL = tryLoad(libNames[i]);
if (libGL)
break;
}
This is incorrect. It should be just
libGL = dlopen("libGL.so.1");
if (!libGL)
outputToUser(dlerror())
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kenneth Russell
*** This bug has been marked as a duplicate of bug 34659 ***