]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Fix formal overflow in pointer arithmetic
authorJilles Tjoelker <jilles@FreeBSD.org>
Wed, 5 Sep 2018 19:16:09 +0000 (19:16 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Wed, 5 Sep 2018 19:16:09 +0000 (19:16 +0000)
commit4269bba2eb79d2011a11572e9a0f681b8e9082ff
tree6cdc56c2a219219a17e4a3db93d12089cfe85abd
parentce9eea64253d9f9be95a37cfe36e89bbb2dfa85a
sh: Fix formal overflow in pointer arithmetic

The intention is to lower the value of the pointer, which according to ubsan
cannot be done by adding an unsigned quantity.

Reported by: kevans
Approved by: re (kib)
MFC after: 1 week
bin/sh/expand.c