Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

We are MicroSoft. You will be assimilated. Resistance is futile. (Attributed to B.G., Gill Bates)


devel / comp.arch / Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(

SubjectAuthor
* Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(Tim Rentsch
`* Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(Scott Lurndal
 `- Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(Tim Rentsch

1
Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(

<864jlyz93n.fsf@linuxsc.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=33312&group=comp.arch#33312

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.arch
Subject: Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(
Date: Thu, 20 Jul 2023 12:17:00 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <864jlyz93n.fsf@linuxsc.com>
References: <u0f6gf$32irr$1@dont-email.me> <a533d5c4-8dca-44eb-ba43-bf38ab7f9f34n@googlegroups.com> <2023Apr4.073909@mips.complang.tuwien.ac.at> <u10pbe$259vd$1@dont-email.me> <2023Apr10.143646@mips.complang.tuwien.ac.at> <68VYL.2039083$9sn9.730653@fx17.iad> <2023Apr10.164359@mips.complang.tuwien.ac.at> <KwVYL.1294624$gGD7.576331@fx11.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="3857442d865f8a7bff3454fde02b814b";
logging-data="2993568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xDrbxm7Mlc2J+betUqmIHdwRomDyQRP4="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:sVTfaZYdKYfAJUPq4MTaKptt6Nw=
sha1:yehALb4UdqgR1xjk7P3EOJMjAjA=
 by: Tim Rentsch - Thu, 20 Jul 2023 19:17 UTC

scott@slp53.sl.home (Scott Lurndal) writes:

[...]

> An array object that encompasses the entire virtual address space
> is easily defined on modern (nonsegmented) processors, in which case
> ptrdiff_t is defined for subtraction of any two virtual addresses.

The ISO C standard does not make that guarantee. A value of
type ptrdiff_t must be at least 17 bits, including the sign
bit. If subtraction of two pointers gives a value outside
the range of ptrdiff_t, the behavior is undefined.

Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(

<kdwuM.10045$O8ab.7764@fx40.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=33352&group=comp.arch#33352

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(
Newsgroups: comp.arch
References: <u0f6gf$32irr$1@dont-email.me> <a533d5c4-8dca-44eb-ba43-bf38ab7f9f34n@googlegroups.com> <2023Apr4.073909@mips.complang.tuwien.ac.at> <u10pbe$259vd$1@dont-email.me> <2023Apr10.143646@mips.complang.tuwien.ac.at> <68VYL.2039083$9sn9.730653@fx17.iad> <2023Apr10.164359@mips.complang.tuwien.ac.at> <KwVYL.1294624$gGD7.576331@fx11.iad> <864jlyz93n.fsf@linuxsc.com>
Lines: 14
Message-ID: <kdwuM.10045$O8ab.7764@fx40.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 21 Jul 2023 14:01:52 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 21 Jul 2023 14:01:52 GMT
X-Received-Bytes: 1353
 by: Scott Lurndal - Fri, 21 Jul 2023 14:01 UTC

Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>scott@slp53.sl.home (Scott Lurndal) writes:
>
>[...]
>
>> An array object that encompasses the entire virtual address space
>> is easily defined on modern (nonsegmented) processors, in which case
>> ptrdiff_t is defined for subtraction of any two virtual addresses.
>
>The ISO C standard does not make that guarantee.

I never made such a claim. This isn't comp.lang.c

Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(

<86y1j8t4r2.fsf@linuxsc.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=33393&group=comp.arch#33393

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.arch
Subject: Re: On the pitfalls of C and UB: C23 seems to be even worse. :-(
Date: Sat, 22 Jul 2023 07:12:01 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <86y1j8t4r2.fsf@linuxsc.com>
References: <u0f6gf$32irr$1@dont-email.me> <a533d5c4-8dca-44eb-ba43-bf38ab7f9f34n@googlegroups.com> <2023Apr4.073909@mips.complang.tuwien.ac.at> <u10pbe$259vd$1@dont-email.me> <2023Apr10.143646@mips.complang.tuwien.ac.at> <68VYL.2039083$9sn9.730653@fx17.iad> <2023Apr10.164359@mips.complang.tuwien.ac.at> <KwVYL.1294624$gGD7.576331@fx11.iad> <864jlyz93n.fsf@linuxsc.com> <kdwuM.10045$O8ab.7764@fx40.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="c20a25be915291dc36b638c24dc060a9";
logging-data="4029631"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/A4/NsUF+iRsLWBGcQiJxWh/wuBVfESgc="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:aC0LGr0j6pHV7dOO8DOz9JXuquc=
sha1:0Wpil/g3DgA6qhjPp0ysqwgH210=
 by: Tim Rentsch - Sat, 22 Jul 2023 14:12 UTC

scott@slp53.sl.home (Scott Lurndal) writes:

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> scott@slp53.sl.home (Scott Lurndal) writes:
>>
>> [...]
>>
>>> An array object that encompasses the entire virtual address space
>>> is easily defined on modern (nonsegmented) processors, in which case
>>> ptrdiff_t is defined for subtraction of any two virtual addresses.
>>
>> The ISO C standard does not make that guarantee.
>
> I never made such a claim.

I didn't say you did.

> This isn't comp.lang.c

I'm not trying to start a debate. My comment was offered
for the benefit of people who are interested in knowing
the facts. I believe that such people participate in this
newsgroup, and some of those may not read comp.lang.c.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor