98a8bbee26
https://www.thunderbird.net/en-US/thunderbird/115.2.0/releasenotes MFSA 2023-38 (bsc#1214606) * CVE-2023-4573 (bmo#1846687) Memory corruption in IPC CanvasTranslator * CVE-2023-4574 (bmo#1846688) Memory corruption in IPC ColorPickerShownCallback * CVE-2023-4575 (bmo#1846689) Memory corruption in IPC FilePickerShownCallback * CVE-2023-4576 (bmo#1846694) Integer Overflow in RecordedSourceSurfaceCreation * CVE-2023-4577 (bmo#1847397) Memory corruption in JIT UpdateRegExpStatics * CVE-2023-4051 (bmo#1821884) Full screen notification obscured by file open dialog * CVE-2023-4578 (bmo#1839007) Error reporting methods in SpiderMonkey could have triggered an Out of Memory Exception * CVE-2023-4053 (bmo#1839079) Full screen notification obscured by external program * CVE-2023-4580 (bmo#1843046) Push notifications saved to disk unencrypted * CVE-2023-4581 (bmo#1843758) XLL file extensions were downloadable without warnings * CVE-2023-4582 (bmo#1773874) Buffer Overflow in WebGL glGetProgramiv * CVE-2023-4583 (bmo#1842030) Browsing Context potentially not cleared when closing Private Window * CVE-2023-4584 (bmo#1843968, bmo#1845205, bmo#1846080, OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=714
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
# HG changeset patch
|
|
# Parent 3de59fe1b8708c01e134ce698c4232b8a854f617
|
|
Problem: webGL sites are displayed in the wrong color (usually blue-ish)
|
|
Solution: Problem is with skia once again. Output of webgl seems endian-correct, but skia only
|
|
knows how to deal with little endian.
|
|
So we swizzle the output of webgl after reading it from readpixels()
|
|
Note: This does not fix all webGL sites, but is a step in the right direction
|
|
|
|
Index: firefox-115.0/gfx/gl/GLContext.h
|
|
===================================================================
|
|
--- firefox-115.0.orig/gfx/gl/GLContext.h
|
|
+++ firefox-115.0/gfx/gl/GLContext.h
|
|
@@ -1560,6 +1560,13 @@ class GLContext : public GenericAtomicRe
|
|
BEFORE_GL_CALL;
|
|
mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
|
|
OnSyncCall();
|
|
+#if MOZ_BIG_ENDIAN()
|
|
+ uint8_t* itr = (uint8_t*)pixels;
|
|
+ for (GLsizei i = 0; i < width * height; i++) {
|
|
+ NativeEndian::swapToLittleEndianInPlace((uint32_t*)itr, 1);
|
|
+ itr += 4;
|
|
+ }
|
|
+#endif
|
|
AFTER_GL_CALL;
|
|
mHeavyGLCallsSinceLastFlush = true;
|
|
}
|