]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r284779: sh: Fix some arithmetic undefined behaviour.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Aug 2015 19:58:00 +0000 (19:58 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Aug 2015 19:58:00 +0000 (19:58 +0000)
commitbf7ff5045c22c382a0668fd6c313df3d240d48d8
treedd5862d98503bfa59b68194f4aa8a661be0b2e4e
parentfd0fd0d1627a80473967043013d8cf2f46424293
MFC r284779: sh: Fix some arithmetic undefined behaviour.

Fix shifts of possibly negative numbers found with ubsan and avoid signed
integer overflow when hashing an extremely long command name.

git-svn-id: svn://svn.freebsd.org/base/stable/10@286813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/alias.c
bin/sh/exec.c