mirror of
https://github.com/azure-rtos/netxduo.git
synced 2025-10-14 02:58:01 +08:00
patch for GHSA-v474-mv4g-v8cx
edited by inspection not compiled or run-time tested
This commit is contained in:
@@ -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. ****/
|
||||
|
||||
/* Determine if there are security parameters. */
|
||||
|
Reference in New Issue
Block a user