[Bug 198465] [maintainer] x11/slim: fix access out of bound in slim

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 9 19:30:22 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198465

            Bug ID: 198465
           Summary: [maintainer] x11/slim: fix access out of bound in slim
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: henry.hu.sh at gmail.com

Created attachment 154098
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154098&action=edit
fix malloc and memcpy arguments

The attached patch fixes access-out-of-bound in slim.
The size argument of memcpy() and malloc() is wrong when modifying environment
variables.
Patch tested by reporter and works as intended.
The problem was present, but luckily slim still works. With the new patch to
support login.conf, the problematic variables are used, and the bug is
triggered.

Reported by: Holger Schröder <holgihsp at gmail.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list