Hi Charles,

 

In function yaffs_lseek,

 

                        if(whence == SEEK_SET){

                                    if(offset >= 0)

                                                pos = offset;

                        } else if(whence == SEEK_CUR) {

                                    if( (fd->position + offset) >= 0)

                                                pos = (fd->position + offset);      

 

 

if( (fd->position + offset) >= 0)     : since fd->position is u32 (unsigned int), the expression can never be negative.

Is this a bug?

 

-------------------------------------------------------------------------
Amir Comforti

Zoran Microelectronics Ltd
Phone:  +972 4 8546310

Email:   amir.comforti@zoran.com

Web:   
www.zoran.com
-------------------------------------------------------------------------