This fixes CVE-2015-5291 and some other smaller security issues. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47200
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46484