[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issues with recent doprnt-related changes
From: |
Stefan Monnier |
Subject: |
Re: issues with recent doprnt-related changes |
Date: |
Fri, 06 May 2011 14:13:06 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> And we never show "length, including
>> terminating nul-byte" to Elisp, so the nul-byte shouldn't matter
> If you are sure of that, then I agree it's fine to use
> MOST_POSITIVE_FIXNUM+1. I wasn't sure. I do see in C variables that
> explicitly use the string position of the null byte; I was afraid that
> they could somehow leak to Lisp.
I don't know enough to guarantee you that they can never leak to Lisp,
but I can't think of any reason why they should. And note that "the
position of the nul byte" is the same as "the length of the list", so
it's still <= MOST_POSITIVE_FIXNUM. It's only the position after the
nul byte that would overflow.
Stefan
- Re: issues with recent doprnt-related changes, Paul Eggert, 2011/05/04
- Re: issues with recent doprnt-related changes, Eli Zaretskii, 2011/05/05
- Re: issues with recent doprnt-related changes, Stefan Monnier, 2011/05/06
- Re: issues with recent doprnt-related changes, Paul Eggert, 2011/05/06
- Re: issues with recent doprnt-related changes, Eli Zaretskii, 2011/05/06
- Re: issues with recent doprnt-related changes,
Stefan Monnier <=
- Re: issues with recent doprnt-related changes, Eli Zaretskii, 2011/05/06
- Re: issues with recent doprnt-related changes, Stefan Monnier, 2011/05/06
- Re: issues with recent doprnt-related changes, Eli Zaretskii, 2011/05/07