Closed firmianay closed 11 months ago
limit the lenth of each token in sscanf
see https://github.com/HiGarfield/udp2raw/blob/f3127d77798d239fddf5ebb46b2c9d1eac83f6e5/common.cpp#L18
Those two function only parses local parameters which are input by you locally. They never parse parameters from the internet.
So I guess that's not a big deal?
Yes, it's not a big problem right now, but it leaves a hidden danger if in the future when the function is used to resolve addresses from outside there will be problems, so it is recommended to fix this little bug to avoid future problems.
hi, great project!