Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #152950
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: How many wide characters may mbstowcs store? |
| Date | 2020-06-28 06:32 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <864kqviae5.fsf@linuxsc.com> (permalink) |
| References | <r9bd16$nbt$1@solani.org> <rd3uc8$sqv$1@dont-email.me> |
Andrey Tarasevich <andreytarasevich@hotmail.com> writes: > On 5/11/2020 4:30 AM, Philipp Klaus Krause wrote: > >> For wcstombs, the wording seems clear to state that it will stop at a >> terminating 0, but for the mbstowcs it seems unclear to me. > > The issue is fairly similar to the one described here > > https://trust-in-soft.com/blog/2015/12/21/memcmp-requires-pointers-to-fully-valid-buffers/ > > The question is whether `memcmp` is allowed to read beyond the first > differing byte, while still within the specified buffer size. The question is similar. The answer isn't.
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar
Re: How many wide characters may mbstowcs store? Andrey Tarasevich <andreytarasevich@hotmail.com> - 2020-06-25 21:42 -0700 Re: How many wide characters may mbstowcs store? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-06-28 06:32 -0700
csiph-web