]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338473: sh: Fix formal overflow in pointer arithmetic
authorjilles <jilles@FreeBSD.org>
Fri, 28 Sep 2018 12:29:53 +0000 (12:29 +0000)
committerjilles <jilles@FreeBSD.org>
Fri, 28 Sep 2018 12:29:53 +0000 (12:29 +0000)
commit1a650ca58fdebc65caed223dbfd24091808056c3
tree7acf53977f9290d32f4db2f129df69151d46e5eb
parent46f4a88354f334a9593db839316500355965bac2
MFC r338473: 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
bin/sh/expand.c