Skip to content

Commit

Permalink
- fixed - Bug in presentation layer parser can cause infinite loop (L…
Browse files Browse the repository at this point in the history
…IB61850-302)
  • Loading branch information
mzillgith committed Feb 25, 2022
1 parent 96e93c4 commit cfa94cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mms/iso_presentation/iso_presentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ parseNormalModeParameters(IsoPresentation* self, uint8_t* buffer, int totalLengt
if (DEBUG_PRES)
printf("PRES: pcd list\n");
bufPos = parsePresentationContextDefinitionList(self, buffer, len, bufPos);

if (bufPos < 0)
return -1;

break;

case 0xa5: /* context-definition-result-list */
Expand Down

0 comments on commit cfa94cb

Please sign in to comment.