diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 15:36:10 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 15:36:10 +0000 |
| commit | 440d6ce5ba127739ab04d3254e7cb6340de3361e (patch) | |
| tree | 9c4604b85d4aed8b8ca78e22d4773cf0e6a18025 /util/nvmutil/nvmutil.c | |
| parent | f3956a248274fd8835d04d2149e5d67159cba84d (diff) | |
util/nvmutil: run-time CHAR_BIT test
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 1dd07e9f..59ceb2c5 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -719,6 +719,9 @@ main(int argc, char *argv[]) if (argc < 3) usage(); + if (CHAR_BIT != 8) + err(EINVAL, "Unsupported char size"); + fname = argv[1]; #ifdef NVMUTIL_UNVEIL |
