https://bugs.gentoo.org/959851 https://www.qt.io/blog/security-advisory-recently-reported-denial-of-service-issue-in-qcolortransfergenericfunction-impacts-qt https://codereview.qt-project.org/c/qt/qtbase/+/657023 --- a/src/gui/painting/qcolortransfergeneric_p.h +++ b/src/gui/painting/qcolortransfergeneric_p.h @@ -19,2 +19,3 @@ +#include #include @@ -67,2 +68,3 @@ { + x = std::clamp(x, 0.f, 12.f); if (x > 1.f) @@ -75,2 +77,3 @@ { + x = std::clamp(x, 0.f, 1.f); if (x < 0.5f) @@ -88,2 +91,3 @@ { + e = std::clamp(e, 0.f, 1.f); // m2-th root of E' @@ -101,2 +105,3 @@ { + fd = std::clamp(fd, 0.f, 64.f); // scale Fd to Y