Created attachment 154098 [details] 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@gmail.com>
A commit references this bug: Author: robak Date: Fri Mar 13 14:26:18 UTC 2015 New revision: 381210 URL: https://svnweb.freebsd.org/changeset/ports/381210 Log: x11/slim: fix malloc and memcpy arguments PR: 198465 Submitted by: Henry Hu <henry.hu.sh@gmail.com> Changes: head/x11/slim/Makefile head/x11/slim/files/patch-app.cpp
Committed, thanks for your work!