Bug 249327 - fix IP address parsing in netgraph eating too many characters
Summary: fix IP address parsing in netgraph eating too many characters
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-15 05:59 UTC by Markus Stoff
Modified: 2020-09-20 19:52 UTC (History)
0 users

See Also:


Attachments
Suggested fix for ng_parse.c (506 bytes, patch)
2020-09-15 05:59 UTC, Markus Stoff
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Stoff 2020-09-15 05:59:08 UTC
Created attachment 217966 [details]
Suggested fix for ng_parse.c

The IP address parse type in ng_parse.c eats one character to much on the input.

Example:

Given '{ inet=10.0.0.1 }', after the IP address has been parsed the next character on the input should be the space (' '), but instead it is the closing curly brace '}'.
Comment 1 Markus Stoff 2020-09-20 19:52:54 UTC
See also review D26489.