HomeFreeBSD

MFC r284779: sh: Fix some arithmetic undefined behaviour.

Description

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.

Details

Provenance
jillesAuthored on
Parents
rS286812: bsd.lib.mk has to be included after MLINKS assignment
Branches
Unknown
Tags
Unknown