summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2019-07-26 18:58:12 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-27 20:08:16 +0000
commitaf8d9a859dce4da8e90700e8378aba78c9a5a015 (patch)
tree1d88d4005a1d283214985e5d017509f29e7dc209 /core
parent06f871f4f71af647954bfc8ef829237ccc6a79c9 (diff)
downloadchrome-ec-af8d9a859dce4da8e90700e8378aba78c9a5a015.tar.gz
chip/host: Add check for TEST_BUILD in trng.c
Due to the possibly unnoticeable security vulnerability it would cause if the dummy host trng driver made it's way into production (non-test) code, this change adds a small check to ensure it is being used only in test or fuzz builds. This isn't as much of a concern for other dummy host drivers. For example, including a fake spi driver may simply manifest as broken feature. BRANCH=none BUG=none TEST=make buildall -j Change-Id: I31138976566d39ed44d905bbb2c43c5f6decbaf4 Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1722182 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions