--- Begin Message ---
Subject: |
Potential logical bug in readtokens.c |
Date: |
Tue, 06 Mar 2012 13:58:59 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
Hi,
I think I found a potential bug. But I am not sure about it. It looks
real from the code.
For coreutils 8.15, in file readtokens.c, function readtoken()
If delim is NULL, and saved_delim is not NULL, then the condition on
line 75 is not satisfied, but the condition on line 79 is satisfied.
In this case, there could be NULL pointer deference for delim[i] in line 84.
- Zhongxing Xu
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#10953: Potential logical bug in readtokens.c |
Date: |
Wed, 07 Mar 2012 11:56:48 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 |
On 03/07/2012 11:52 AM, Jim Meyering wrote:
> Here's a proposed readtokens test module:
I took a quick look, and it looks fine, thanks.
The bug's fixed now, so I'm marking it as 'done'.
--- End Message ---