Skip to content

Commit

Permalink
Fix skip_name() to not generate strings with bogus length.
Browse files Browse the repository at this point in the history
Discovered by OSS-Fuzz.
  • Loading branch information
sobomax committed Mar 14, 2023
1 parent 1d95711 commit e963b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/contact/contact.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ static inline int skip_name(str* _s)

if (*p == ':') {
if (last_wsp) {
_s->s = last_wsp;
_s->len -= last_wsp - _s->s + 1;
_s->s = last_wsp;
}
return 0;
}
Expand Down

0 comments on commit e963b4d

Please sign in to comment.