util: add assertion for NTP timestamp size
This commit is contained in:
parent
ed5c43204b
commit
702db726d3
1 changed files with 1 additions and 0 deletions
1
util.c
1
util.c
|
@ -641,6 +641,7 @@ UTI_GetNtp64Fuzz(NTP_int64 *ts, int precision)
|
|||
int start, bits;
|
||||
|
||||
assert(precision >= -32 && precision <= 32);
|
||||
assert(sizeof (*ts) == 8);
|
||||
|
||||
start = sizeof (*ts) - (precision + 32 + 7) / 8;
|
||||
ts->hi = ts->lo = 0;
|
||||
|
|
Loading…
Reference in a new issue