bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22489: A bug in tail.c


From: Paul Eggert
Subject: bug#22489: A bug in tail.c
Date: Fri, 29 Jan 2016 10:29:57 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/29/2016 04:38 AM, Lei Wang wrote:
There is one condition can lead to program
overflow, thus argc==2 and argv[1] has only one character, for example
./tail x , will access the next character after x, this maybe a bug

I don't see a bug there. The next character is a null byte, and ISDIGIT ('\0') is false so the code should do the right thing. I don't think there is a test case that illustrates wrong behavior, but if I'm wrong please reply with a test case (a shell command invoking 'tail') and I'll reopen the bug report.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]