Summary: | Invalid _NET_WM_ICON crashes kwin | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Billy Biggs <vektor> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | robert.kausch |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Billy Biggs
2004-10-08 06:37:30 UTC
CVS commit by lunakl: Protect against attempts at sabotaging KWin. CCMAIL: 90944-done@bugs.kde.org M +1 -1 netwm.cpp 1.137 --- kdelibs/kdecore/netwm.cpp #1.136:1.137 @@ -495,5 +495,5 @@ fprintf(stderr, "NETWM: Warning readIcon s = sz * sizeof(long); - if ( i + s - 1 > bufsize ) { + if ( i + s - 1 > bufsize || sz == 0 || sz > 1024 * 1024 ) { break; } Unfortunately, this bug has been reintroduced in Plasma 5. The original code submitted by Billy crashes even the latest KWin 5.3.2 again. And fixed again in kwindowsystem 5.13. Thanks! |