Re: svn commit: r1381800 - /subversion/trunk/subversion/libsvn_subr/io.c
From: Paul Burba <ptburba_at_gmail.com>
Date: Fri, 7 Sep 2012 18:35:30 -0400
On Fri, Sep 7, 2012 at 3:29 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
Here is the problem: apr_off_t is unsigned and in some cases we are
[[[
See also discussion at http://svn.haxx.se/dev/archive-2012-09/0114.shtml
* subversion/libsvn_subr/io.c
--
Paul T. Burba
CollabNet, Inc. -- www.collab.net -- Enterprise Cloud Development
Skype: ptburba
>>>> + *eol = 0;
>>>> + *limit = total_read + (eol - buf);
>>>> +
>>>> + /* correct the file pointer:
>>>> + * appear as though we just had read the newline char
>>>> + */
>>>> + SVN_ERR(svn_io_file_seek(file, APR_CUR, &offset, pool));
>>>> +
>>>> return SVN_NO_ERROR;
>>>> }
>>>> - else
>>>> + else if (eof)
>>>> {
>>>> - buf[i] = c;
>>>> + /* no EOL found but we hit the end of the file.
>>>> + * Generate a nice EOF error object and return it.
>>>> + */
>>>> + char dummy;
>>>> + SVN_ERR(svn_io_file_getc(&dummy, file, pool));
>>>> }
>>>> +
>>>> + /* next data chunk */
>>>> + buf_size -= bytes_read;
>>>> + buf += bytes_read;
>>>> + total_read += bytes_read;
>>>> }
>>>>
>>>> + /* buffer limit has been exceeded without finding the EOL */
>>>> err = svn_io_file_name_get(&name, file, pool);
>>>> if (err)
>>>> name = NULL;
>>>>
>>>>
>>>
>>> Anybody else seeing this?
>>
>> Yes, I'm seeing a failure with the same error message, on my Ubuntu Linux
>> system.
>>
>> - Julian
>>
>>
>>> I haven't figured out why yet, but r1381800 is causing failures on my
>>> Windows box, all similar to this:
>> [...]
>>> I: svn: E070014: Can't read file
>>>
>> 'C:\SVN\src-trunk\Debug\subversion\tests\cmdline\svn-test-work\local_tmp\repos\db\revs\0\0':
>>> End of file found
>> [...]
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.