Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #382262
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Which tools are available for catching UB? |
| Date | 2024-02-10 02:06 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <86a5o863bj.fsf@linuxsc.com> (permalink) |
| References | <YXJnN.184010$xHn7.45772@fx14.iad> <uobt0a$2jo2e$1@dont-email.me> <8634ukeofy.fsf@linuxsc.com> <20240125203408.386@kylheku.com> |
Kaz Kylheku <433-929-6894@kylheku.com> writes: > On 2024-01-26, Tim Rentsch <tr.17687@z991.linuxsc.com> wrote: > >> Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes: >> >>> [A] single call to a function not defined by your program source >>> code or by the ISO C standard will invoke "undefined behaviour". >> >> That isn't right. The C standard allows previously translated >> translation units "[to] be preserved individually or in libraries." >> Those translation units don't have to be your own code or even >> necessarily stored, or translated, on the same machine. > > This is a strawman interpretation of what Lew is almost certainly > saying, No, it isn't. You misunderstood my statement. > which is the salient point that using a function that is not > somewhere in your program (any translation unit from your sources > or any translated units you brought to the table yourself), and > not in the standard, is undefined behavior. No, it isn't. Whether a library, for example, was something you put on the machine yourself, or was put there by a hacker without your knowledge, doesn't affect the presence or absence of undefined behavior. All that matters is what's in the library. It's perfectly possible for a library installed by a hacker to perform only well-defined operations, be well-formed and ABI-compatible, etc. Just because you don't know what is in the library doesn't make it undefined behavior.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Which tools are available for catching UB? Anthony Cuozzo <anthony@cuozzo.us> - 2024-01-10 23:15 -0500
Re: Which tools are available for catching UB? David Brown <david.brown@hesbynett.no> - 2024-01-11 13:43 +0100
Re: Which tools are available for catching UB? Anthony Cuozzo <anthony@cuozzo.us> - 2024-01-11 18:15 -0500
Re: Which tools are available for catching UB? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-01-11 16:09 -0800
Re: Which tools are available for catching UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-14 09:44 -0800
Re: Which tools are available for catching UB? David Brown <david.brown@hesbynett.no> - 2024-01-12 14:50 +0100
Re: Which tools are available for catching UB? Richard Kettlewell <invalid@invalid.invalid> - 2024-01-12 08:51 +0000
Re: Which tools are available for catching UB? Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2024-01-18 18:17 +0000
Re: Which tools are available for catching UB? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-01-18 19:08 +0000
Re: Which tools are available for catching UB? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-01-18 14:42 -0500
Re: Which tools are available for catching UB? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-01-18 20:24 +0000
Re: Which tools are available for catching UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-25 19:57 -0800
Re: Which tools are available for catching UB? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-01-26 04:52 +0000
Re: Which tools are available for catching UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-02-10 02:06 -0800
Re: Which tools are available for catching UB? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-01-18 19:41 +0000
Re: Which tools are available for catching UB? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-01-18 13:18 -0800
Re: Which tools are available for catching UB? gazelle@shell.xmission.com (Kenny McCormack) - 2024-01-19 03:08 +0000
csiph-web