Red Hat Bugzilla – Bug 437256
rmcp_ping badly handles cmd line arguments
Last modified: 2009-09-02 05:59:08 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:126.96.36.199) Gecko/20080208 Fedora/188.8.131.52-1.fc8 Firefox/184.108.40.206
Description of problem:
The rmcp_ping utility does not check the command line arguments if they are sane.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rmcp_ping -p -1
2. rmcp_ping -p 65536
3. rmcp_ping -t -1
1. it is running and broadcasting data to port 65535
2. it starts and tries to broadcast data to port 0, exits with an error message "sendto: Invalid argument"
3. it is running, broadcasting data and waiting for an answer for a very long time (my guess is 65535 seconds)
1. it exits with an error message like "invalid port number"
2. it exits with an error message like "invalid port number"
3. it exits with an error message like "invalid number of seconds"
Patch sent upstream, waiting for acceptance.
Patch was accepted.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.