[coreboot-gerrit] Patch merged into coreboot/master: console/vtxprintf.c: cast precision to size_t for string length
gerrit at coreboot.org
gerrit at coreboot.org
Mon Nov 21 23:44:27 CET 2016
the following patch was just integrated into master:
commit ad6c885ce48edeb0120499c0877e3145080a901e
Author: Martin Roth <martinroth at google.com>
Date: Fri Nov 18 11:35:01 2016 -0700
console/vtxprintf.c: cast precision to size_t for string length
If no maximum string length is specified, we're intentionally passing a
value of -1 to get the string length so that it's not limited. This
makes checking tools unhappy, so actively cast it to size_t before
passing it into strlen to show that it's not an accident.
Addresses coverity issue 1129133 - Argument cannot be negative
Change-Id: I40f8f2101e170a5c96fcd39c217aa414f4316473
Signed-off-by: Martin Roth <martinroth at google.com>
Reviewed-on: https://review.coreboot.org/17479
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h at gmx.de>
See https://review.coreboot.org/17479 for details.
-gerrit
More information about the coreboot-gerrit
mailing list