Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #10814

Re: installation

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.sys.raspberry-pi
Subject Re: installation
Date 2016-02-26 00:26 +0000
Organization albasani.net
Message-ID <nao635$abb$1@news.albasani.net> (permalink)
References (9 earlier) <20160224112552.12b83e86@debian> <nandbd$kup$1@dont-email.me> <20160225174215.2c688a61@ntlworld.com> <nansi9$lt4$1@dont-email.me> <4PqdndYB5-NnBVLLnZ2dnUU7-IGdnZ2d@giganews.com>

Show all headers | View raw


On 26/02/16 00:14, Michael J. Mahon wrote:
> Björn Lundin<b.f.lundin@gmail.com>  wrote:
>> >On 2016-02-25 18:42, Rob Morley wrote:
>>> >>On Thu, 25 Feb 2016 18:26:56 +0100
>>> >>Björn Lundin<b.f.lundin@gmail.com>  wrote:
>>> >>
>>>> >>>On 2016-02-24 12:25, Folderol wrote:
>>>>> >>>>The only thing I regard as 'trivially easy' about programming is
>>>>> >>>>the ease with which you can make stupid mistakes.
>>>>> >>>>
>>>>> >>>>I've seen (and created) these covering the whole range from
>>>>> >>>>hard-wired logic to high level languages such as C++
>>>>> >>>>
>>>> >>>
>>>> >>>Then give Ada a try.
>>>> >>>It does prevent you from a fair bit of stupid mistakes.
>>>> >>>
>>> >>It will catch type mismatches, out-of-bounds references and similar
>>> >>stuff but it won't fix faulty logic.
>>> >>
>> >
>> >Correct.  Type mismatches, out-of-bounds references and pointer
>> >errors is what I call stupid mistakes.
>> >How many cases of buffer overflow has been reported?
> Null-terminated (as opposed to count-controlled) strings are convenient,
> but are terribly conveneint.

THAT is not the root of the problem. The problem goes right back to K & 
R's decision to use the stack as a terribly fast and efficient way of 
allocating temporary scratch space. Its wonderful because when you exit 
a function it vanishes. With no overhead.

Its so dangerous because it is the stack and contains instruction 
pointer addresses in its remit, and you can overwrite those and take 
arbitrary code jumps on return...

There are ways around it, but they are overhead, or require a different 
stack.

If you remember that C is no more than a fast way to write assembler, 
and gives you the ultimate power to fuck up totally, you wont make these 
beginner mistakes.


-- 
Bureaucracy defends the status quo long past the time the quo has lost 
its status.

Laurence Peter

Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-22 22:12 +0000
  Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-22 23:33 +0100
    Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-22 22:47 +0000
      Re: installation Rob <nomail@example.com> - 2016-02-22 23:13 +0000
      Re: installation "M.O.B. i L." <mobil@orbin.se> - 2016-02-23 00:15 +0100
    Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-22 23:12 +0000
      Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-23 01:26 +0100
        Re: installation Rob <nomail@example.com> - 2016-02-23 08:40 +0000
          Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-23 11:03 +0100
            Re: installation Rob <nomail@example.com> - 2016-02-23 12:24 +0000
              Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-23 14:42 +0100
          Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-23 20:47 +0000
        Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-23 20:30 +0000
          Re: installation Rob Morley <nospam@ntlworld.com> - 2016-02-24 00:20 +0000
            Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-24 19:55 +0000
          Re: installation Rob <nomail@example.com> - 2016-02-24 08:47 +0000
          Re: installation Jean-Pierre Kuypers <Kuypers@address.invalid> - 2016-02-24 09:55 +0100
            Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-24 18:47 +0000
              Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-24 20:15 +0000
                Re: installation Jean-Pierre Kuypers <Kuypers@address.invalid> - 2016-02-24 23:05 +0100
                Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-24 22:36 +0000
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-25 00:24 +0100
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-25 00:29 +0100
                Re: installation Roger Bell_West <roger+csrp201602@nospam.firedrake.org> - 2016-02-25 00:25 +0000
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-25 11:09 +0100
                Re: installation Rob <nomail@example.com> - 2016-02-25 14:46 +0000
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-25 21:32 +0000
                Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-25 23:45 +0000
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-26 04:33 +0100
                Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-26 08:56 +0000
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-26 22:00 +0000
                Re: installation Jean-Pierre Kuypers <Kuypers@address.invalid> - 2016-02-26 23:32 +0100
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-26 22:53 +0000
                Re: installation alister <alister.ware@ntlworld.com> - 2016-02-26 23:57 +0000
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-27 00:15 +0000
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-27 15:04 +0100
                Re: installation Charlie <cdknospam@msn.com> - 2016-02-27 12:53 -0500
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-27 21:41 +0000
                Debian: version vs. code name (was: installation) Jean-Pierre Kuypers <Kuypers@address.invalid> - 2016-03-02 11:04 +0100
                installation nospam.mark.lewis@p73.f12.n3634.z1.binkp.net (mark lewis) - 2016-02-24 17:44 +1200
                Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-25 21:13 +0000
                Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-25 23:39 +0000
      Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-23 10:24 +0000
        Re: installation Hils <hils@saynotospam.net> - 2016-02-23 13:25 +0000
          Re: installation colonel_hack@yahoo.com - 2016-02-25 21:04 -0700
  Re: installation mm0fmf <none@invalid.com> - 2016-02-22 22:35 +0000
    Re: installation T M Smith <tmsmith36@tmsmith36.plus.com> - 2016-02-22 22:42 +0000
      Re: installation alister <alister.ware@ntlworld.com> - 2016-02-23 10:04 +0000
        Re: installation Charlie <cdknospam@msn.com> - 2016-02-23 08:55 -0500
        Re: installation mm0fmf <none@invalid.com> - 2016-02-23 18:21 +0000
          Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-23 18:28 +0000
          Re: installation alister <alister.ware@ntlworld.com> - 2016-02-23 19:48 +0000
            Re: installation mm0fmf <none@invalid.com> - 2016-02-23 22:49 +0000
              Re: installation alister <alister.ware@ntlworld.com> - 2016-02-24 10:40 +0000
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-24 10:50 +0000
                Re: installation Folderol <general@musically.me.uk> - 2016-02-24 11:25 +0000
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-24 12:37 +0000
                Re: installation Björn Lundin <b.f.lundin@gmail.com> - 2016-02-25 18:26 +0100
                Re: installation Rob Morley <nospam@ntlworld.com> - 2016-02-25 17:42 +0000
                Re: installation Björn Lundin <b.f.lundin@gmail.com> - 2016-02-25 22:46 +0100
                Re: installation Michael J. Mahon <mjmahon@aol.com> - 2016-02-25 18:14 -0600
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-26 00:26 +0000
                Re: installation Michael J. Mahon <mjmahon@aol.com> - 2016-02-25 22:39 -0600
                Re: installation Ahem A Rivet's Shot <steveo@eircom.net> - 2016-02-26 09:33 +0000
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-26 10:05 +0000
                Re: installation Michael J. Mahon <mjmahon@aol.com> - 2016-02-26 17:48 -0600
                Re: installation Björn Lundin <b.f.lundin@gmail.com> - 2016-02-26 15:17 +0100
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-26 14:27 +0000
                Re: installation Björn Lundin <b.f.lundin@gmail.com> - 2016-02-26 15:47 +0100
                Re: installation Michael J. Mahon <mjmahon@aol.com> - 2016-02-26 17:48 -0600
                Re: installation "A. Dumas" <alexandre@dumas.fr.invalid> - 2016-02-26 15:32 +0100
                Re: installation Martin Gregorie <martin@address-in-sig.invalid> - 2016-02-26 09:22 +0000
                Re: installation Björn Lundin <b.f.lundin@gmail.com> - 2016-02-26 15:18 +0100
                Re: installation Rob Morley <nospam@ntlworld.com> - 2016-02-24 12:46 +0000
                Re: installation The Natural Philosopher <tnp@invalid.invalid> - 2016-02-24 13:28 +0000
                Re: installation mm0fmf <none@invalid.com> - 2016-02-24 18:42 +0000
                Re: installation alister <alister.ware@ntlworld.com> - 2016-02-24 21:49 +0000
                Re: installation druck <news@druck.org.uk> - 2016-02-25 13:24 +0000
  Re: installation ray carter <ray@zianet.com> - 2016-02-22 23:20 +0000

csiph-web