Skip to content

Commit

Permalink
Merge pull request from GHSA-79jq-hh82-cv9g
Browse files Browse the repository at this point in the history
Fix Out-of-bound read in sip_method_d
  • Loading branch information
andywolk committed May 25, 2022
2 parents 51841eb + e96b4b8 commit a99804b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libsofia-sip-ua/sip/sip_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ sip_method_t sip_method_d(char **ss, char const **return_name)

#undef MATCH

if (strlen(s) < n) {
return sip_method_invalid;
}

if (IS_NON_WS(s[n]))
/* Unknown method */
code = sip_method_unknown;
Expand Down

0 comments on commit a99804b

Please sign in to comment.