diff options
| author | Frédéric Desbiens <[email protected]> | 2025-09-29 08:46:42 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-29 08:46:42 +0100 |
| commit | 1da62980431c21a46c0df33ceea736bd15bb47c8 (patch) | |
| tree | e8c435f9d03488dd74d86d34009a3dd547fb8604 | |
| parent | f4de148a71bc39dd124dda71604be6db148ac7ec (diff) | |
| parent | 0095a25b7a79c2642a500909406c18bd7fde1fb1 (diff) | |
Merge commit from fork
Added buffer length check
| -rw-r--r-- | addons/snmp/nxd_snmp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/snmp/nxd_snmp.c b/addons/snmp/nxd_snmp.c index 9b555c8c..ac8fd4eb 100644 --- a/addons/snmp/nxd_snmp.c +++ b/addons/snmp/nxd_snmp.c @@ -18586,6 +18586,11 @@ INT buffer_length; /* The buffer pointer is moved by the length. Update buffer size */ buffer_length -= (INT)length; + /* GHSA-v474-mv4g-v8cx */ + if (buffer_length < 2) { + return; + } + /**** Now we are positioned in front of the security parameters field. ****/ if (buffer_length < 2) { |
