bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Bug in workspace XML files


From: Elias Mårtenson
Subject: Re: [Bug-apl] Bug in workspace XML files
Date: Mon, 16 Dec 2013 03:00:26 +0800

I have to admit, it's a clever trick. :-)


On 16 December 2013 02:59, Juergen Sauermann <address@hidden> wrote:
Hi,

I have fixed the wrong tag, see SVN version 59.

The NUL bytes at the end of the file are on purpose to make sure
that, if the xml file is mmap()ed, there is a terminating 0 byte so
that use of C string functions on the mmap()ed memory is safe.

The mmap() man page says little about the bytes after the end of the file
 if, for example, the file length is a multiple of the page size.

I have therefore added the 0-bytes at the end of the file to be on the safe side.
I consider them not as part of the xml file. And xmllint did not complain.

/// Jürgen





reply via email to

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