https://bugs.kde.org/show_bug.cgi?id=421868

            Bug ID: 421868
           Summary: Bad check for mmap return value
           Product: frameworks-kwayland
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: client
          Assignee: mgraess...@kde.org
          Reporter: ha...@hboeck.de
                CC: kwin-bugs-n...@kde.org
  Target Milestone: ---

Created attachment 128670
  --> https://bugs.kde.org/attachment.cgi?id=128670&action=edit
proposed patch

In the file shm_pool.cpp there are 2 places where the return value of mmap() is
checked in a way that it expects a zero on failure. However this is wrong, mmap
returns MAP_FAILED (or -1) on error.

Patch attached.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to