-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for a potential inifite loop in PrepareToReadVendorReservedElemen…
…ts (#18560) When scanning up through the elements in search of a Vendor Reserved element, `PrepareToReadVendorReser` would call `mTlvReader.Next()` inside a `while (true)` loop. Should the `TLVReader::Next()` return an error other than `END_OF_TLV` the loop reader would neither advance nor exit the loop. The change exits the function on any way in a way that parallels the earlier error checks on TLVReader errors.
- Loading branch information
1 parent
e14e16f
commit 1649634
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters