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


Groups > comp.programming > #7720

Re: There is an ugly Word zero day out there today

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.programming
Subject Re: There is an ugly Word zero day out there today
Date 2017-04-19 09:38 +0200
Organization A noiseless patient Spider
Message-ID <od7400$i5j$1@dont-email.me> (permalink)
References (1 earlier) <oci1dd$me$3@dont-email.me> <XnsA755DC0B6E0E6HT1@z66n21828VjwLZ4893rG40b5sOkJ96M.twwX.6U4> <od0dur$di8$1@dont-email.me> <df1ea720-c00f-4818-9949-bc2dca99288b@googlegroups.com> <od6v5v$5c4$1@dont-email.me>

Show all headers | View raw


On 19/04/17 08:16, Richard Heathfield wrote:
> On 19/04/17 07:09, jim.j.barlow@gmail.com wrote:
>> What would you think when a professional programmer has software that
>> produces log files with the filename ending in ".txt" that contain
>> bytes with the value of "0"? I contend it is no longer a text file.
>> The vendor refused to correct the behavior.
> 
> There is no law requiring files with a ".txt" extension to be text
> files. And, when everyone was using ".doc" for program documentation
> stored in text files, Microsoft started using the ".doc" extension for
> binary files, but I don't recall you complaining about that.
> 
> File extensions are not standardised. Anyone can use any extension for
> any purpose.

I used an embedded assembler toolchain that used ".txt" for the binary
output files.  I can't remember the reasoning behind the choice, but
there was /some/ excuse for such an annoying choice.

> 
> About ten years ago, I gave someone a bunch of JPEGs and asked him to
> turn each one into a PowerPoint slide. He solved this difficult task by
> renaming each ".jpg" to ".ppt", and was then appalled to find that for
> some bizarre reason this didn't work.
> 
> Never trust a file extension.
> 

Indeed.  Windows /does/ trust file extensions, and that has been the
source of endless security flaws.

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: There is an ugly Word zero day out there today "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2017-04-11 15:45 +0800
  Re: There is an ugly Word zero day out there today Steve Hayes <hayesstw@telkomsa.net> - 2017-04-11 10:06 +0200
    Re: There is an ugly Word zero day out there today "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2017-04-11 19:14 +0800
  Re: There is an ugly Word zero day out there today Diesel <me@privacy.net> - 2017-04-13 01:29 +0000
    Re: There is an ugly Word zero day out there today "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2017-04-17 02:45 +0800
      Re: There is an ugly Word zero day out there today jim.j.barlow@gmail.com - 2017-04-18 23:09 -0700
        Re: There is an ugly Word zero day out there today Richard Heathfield <rjh@cpax.org.uk> - 2017-04-19 07:16 +0100
          Re: There is an ugly Word zero day out there today David Brown <david.brown@hesbynett.no> - 2017-04-19 09:38 +0200
          Re: There is an ugly Word zero day out there today jim.j.barlow@gmail.com - 2017-04-28 20:34 -0700

csiph-web