NetBSD-Bugs archive

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

Re: toolchain/50758: [src/tools/compat/snprintf.c:192]: (error) Array 'rep[9]' accessed at index 10, which is out of bounds.



The following reply was made to PR toolchain/50758; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/50758: [src/tools/compat/snprintf.c:192]: (error)
 Array 'rep[9]' accessed at index 10, which is out of bounds.
Date: Tue, 31 May 2016 03:00:51 +0000

 On Tue, May 31, 2016 at 03:00:01AM +0000, David Holland wrote:
  >  (rep[10] + 23 gives either 'x' or 'X'; it looks to me like the code
  >  prints x0abcd instead of 0xabcd and that seems like a bug, but that's
  >  not related.)
 
 but it doesn't and that's not a bug either.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index