diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-01-15 11:16:10 -0500 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-06 16:16:48 +0000 |
| commit | 01af91e5ff670c3fecda08742c0b23dfb5477d8b (patch) | |
| tree | 19a890d4599eae2be478665c2c2ac8c3896651cf /lib/srv6.c | |
| parent | 62e01a8982a3f0134e717f255dd97e21c0a4097e (diff) | |
ospfd: Fix Coverity SA #1617470, 76 and 78
msg_new takes a uint16_t, the length passed
down variable is a unsigned int, thus 32 bit.
It's possible, but highly unlikely, that the
msglen could be greater than 16 bit.
Let's just add some checks to ensure that
this could not happen.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 283cc511781f9e076baf8564dae234de52cb290a)
Diffstat (limited to 'lib/srv6.c')
0 files changed, 0 insertions, 0 deletions
