mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-15 16:49:15 -05:00
fw: Check for NULL pointer in copy_name
This commit is contained in:
parent
65e67b604d
commit
8562f08e2c
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ static void compute_cdi(const uint8_t *digest, const uint8_t use_uss,
|
|||
static void copy_name(uint8_t *buf, const size_t bufsiz, const uint32_t word)
|
||||
{
|
||||
assert(bufsiz >= 4);
|
||||
assert(buf != NULL);
|
||||
|
||||
buf[0] = word >> 24;
|
||||
buf[1] = word >> 16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue