- Check for potential overflow from strtol().
- Make sure sweepmax isn't larger than the maximum packet size.
- Check against sweepmax before incrementing the packet size, not after.
Inspired by PR 239978.
Differential D25622
ping(8): Improve validation of -g, -G and -h parameters. markj on Jul 11 2020, 5:11 PM. Authored by Tags None Referenced Files
Details
Inspired by PR 239978.
Diff Detail
Event Timeline
|