GNU bug report logs - #10953
Potential logical bug in readtokens.c

Previous Next

Package: coreutils;

Reported by: Xu Zhongxing <xu_zhong_xing <at> 163.com>

Date: Tue, 6 Mar 2012 08:18:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Xu Zhongxing <xu_zhong_xing <at> 163.com>
To: 10953 <at> debbugs.gnu.org
Subject: bug#10953: Potential logical bug in readtokens.c
Date: Tue, 06 Mar 2012 13:58:59 +0800
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





This bug report was last modified 13 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.