heimdal:base: Don't perform arithmetic on a NULL pointer
commitef059b8831f4e12304246bb511b9b9e077b98c4e
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 14 Jul 2021 04:03:21 +0000 (14 16:03 +1200)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Jan 2022 05:31:45 +0000 (18 00:31 -0500)
treeece4e12eaf609a6c65b823ace41b515fc14902da
parent1c93a6ff2613f827a1414bb88a7388354e3d0702
heimdal:base: Don't perform arithmetic on a NULL pointer

Doing so is undefined behaviour.

Change-Id: Ic57baac0fc5fb06945c0dfbd5d4eb913a12fc13d
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/base/heimbase.c