diff options
| author | Christian Hopps <chopps@labn.net> | 2023-06-06 15:12:58 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-06-06 15:12:58 -0400 |
| commit | 565139a6d5c2541e7b740a4a972dd7c18a87a984 (patch) | |
| tree | 76a34309233042358d30328e2a42ebc7c159709e /lib/xref.c | |
| parent | da877b5cedcb1380f811124788d35242381f91a0 (diff) | |
mgmtd: assert an assertion for coverity
I believe coverity can't tell the length of the return value from strftime based
on the format string (like we can), so it allows `n` to be larger than it could
be which then allows `sz - n` to be negative which is size_t positive and very
large so it thinks an overrun is possible.
CID#1563211
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/xref.c')
0 files changed, 0 insertions, 0 deletions
