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 20, 2023
1 parent df9fb63 commit 3b0cb05
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 3b0cb05

Please sign in to comment.