[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8545: issues with recent doprnt-related changes
From: |
Eli Zaretskii |
Subject: |
bug#8545: issues with recent doprnt-related changes |
Date: |
Thu, 28 Apr 2011 03:26:28 -0400 |
> Date: Wed, 27 Apr 2011 23:42:57 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: lekktu@gmail.com, 8545@debbugs.gnu.org
>
> OK, but format_end == B + BSIZE.
> So if doprnt (A, ASIZE, B, B + BSIZE, AP) can dereference format_end + 1,
> this means doprnt can access B[BSIZE + 1], which means that
> B should point to a char array of at least BSIZE + 2 bytes.
With the original code, that was the case, yes. But that is why I
forcibly reset fmt to point to format_end: to avoid dereferencing past
the end of the array.
If you are saying that such invalid dereferencing can still happen,
please show how is that possible, with the code that is now in the
repository.
> Normally, B is a C-language string literal such as "abc%d",
> and BSIZE is the length of the string, which means
> there is potential trouble because normally code
> should not try to read the byte that follows the null
> byte at the end of the string.
That trouble shouldn't happen with the code in the repository.
- bug#8545: issues with recent doprnt-related changes, (continued)
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/27
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/27
- bug#8545: issues with recent doprnt-related changes, Juanma Barranquero, 2011/04/27
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/27
- bug#8545: issues with recent doprnt-related changes, Juanma Barranquero, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/28
- bug#8545: issues with recent doprnt-related changes,
Eli Zaretskii <=
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Richard Stallman, 2011/04/29
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/29
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/29
- bug#8545: issues with recent doprnt-related changes, Richard Stallman, 2011/04/30
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/28
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/28
- Message not available
- Message not available
- Message not available
- bug#8545: issues with recent doprnt-related changes, Eli Zaretskii, 2011/04/29
- bug#8545: issues with recent doprnt-related changes, Paul Eggert, 2011/04/29