Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: JB <jbjb@xxxxxxxxxxxxx>
- Date: Tue, 10 Jan 2006 17:46:07 +0000
On Tue, 10 Jan 2006 09:32:22 +0000, Martin Brown
<|||newspam|||@nezumi.demon.co.uk> wrote:
>JB wrote:
>
>> I'd say that C *allows* sloppy coding (as does any language) but in
>> what way does it *encourage* it (any more than any other language)?
>
>Most of the main buffer overflow vulnerabilities stem from the C mindset
>inherent in the K&R example for strcopy() = while (*s++ = *t++);
Which is, of course, a perfectly correct implementation of strcpy.
It's unsafe *usage* of strcpy that causes the problem, not this
implementation.
>
>> It's perfectly possible to write secure well-engineered code in C.
>
>But much more difficult to be sure it does what you really intend than
>in other strongly typed languages like Ada, Algol, Modula2 or Pascal.
>>
>> The problems caused by sloppy coding in C may be different from those
>> caused by sloppy programming in, say, Java, but it's still just as
>> possible to write bad code in Java.
>
>It is always possible to write bad code in any language.
>
>C merely permits a lot more human errors to compile without comment. It
>was much worse in the past when compilers would let through obvious
>errors detectable by static analysis. Classics like eg:
>
>x=0;
>if (x = 0) printf("hello world");
>
>It was always amusing to run production C code through new versions of
>lint to see how many new MFUs would show up.
That's not really so much the case these days, however. I agree it
was pretty bad before ANSI C, with no function prototypes etc., but
most compilers are now pretty good at picking up the well-known C
gotchas.
The *vast* majority of the bugs I see in production code are language
independant - errors of logic rather than falling into C linguistic
traps.
/JB
--
jbjb AT uk2 DOT net
.
- References:
- IrfanView is not affected by the MS JPEG vulnerability.
- From: norm
- Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: David J Taylor
- Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: Ron Hunter
- Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: David J Taylor
- Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: JB
- Re: IrfanView is not affected by the MS JPEG vulnerability.
- From: Martin Brown
- IrfanView is not affected by the MS JPEG vulnerability.
- Prev by Date: Re: My WWW
- Next by Date: Re: Noise levels as a function of pixel size
- Previous by thread: Re: IrfanView is not affected by the MS JPEG vulnerability.
- Next by thread: Re: IrfanView is not affected by the MS JPEG vulnerability.
- Index(es):
Relevant Pages
|