"wait" does not check that its argument is an integer

Bug #716252 reported by Matt Giuca
6
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: prompt
Matt Giuca (mgiuca)
tags: added: prompt
removed: promp
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.