"wait" does not check that its argument is an integer
Bug #716252 reported by
Matt Giuca
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HF-Lab |
Triaged
|
Low
|
Matt Giuca |
Bug Description
The 'wait' command is supposed to take an integer. However, it seems to just use scanf("%d"), as it will accept any word. If it begins with an integer, it will take just the integer part. Otherwise, it will wait for "-1 seconds" (which waits forever). It is also possible to supply any negative number.
It should only accept a non-negative integer.
Check if this sort of parsing is systemic in the command processor, or just applies to 'wait'.
tags: |
added: prompt removed: promp |
To post a comment you must log in.