J
James Harris
....
Yes. Again, the offset of a part of the disk requires an integer which is
sized suitably for the disk and not for a particular program.
That's exactly the kind of issue I was talking about. The software company
could have tested that their app installs on many different operating
systems but, because of lax management of integer sizes, missed that it
would miscalculate in such limited circumstances as you mention and then
such a problem only gets noticed by customers. Some issues could be much
more important and produce incorrect results and not be noticed by customers
for years. In the UK recently there was a report of a high street retailer
that, because of a faulty piece of software, had been underpaying some of
its staff for some time. It doesn't look good when such errors are
eventually found out.
James
Also, a program should be independent of the size of the
disk the files are in.
Yes. Again, the offset of a part of the disk requires an integer which is
sized suitably for the disk and not for a particular program.
I have seen programs that refuse to install on disk partitions
with more than 2G (and less than 4G) available. (In the days when
larger disks weren't quite as common as today.) They used signed 32
bit integers to compute the available space, and didn't notice
the overflow.
That's exactly the kind of issue I was talking about. The software company
could have tested that their app installs on many different operating
systems but, because of lax management of integer sizes, missed that it
would miscalculate in such limited circumstances as you mention and then
such a problem only gets noticed by customers. Some issues could be much
more important and produce incorrect results and not be noticed by customers
for years. In the UK recently there was a report of a high street retailer
that, because of a faulty piece of software, had been underpaying some of
its staff for some time. It doesn't look good when such errors are
eventually found out.
James