BBC BASIC for Windows
« Bug in GET$#file function »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:34pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Bug in GET$#file function  (Read 301 times)
dfeugey
Guest
xx Bug in GET$#file function
« Thread started on: Sep 4th, 2015, 11:09am »

Quote:
Please be aware that there is quite a serious bug in the GET$#file function, which can cause the returned string to be corrupted if it is longer than 65535 characters (specifically, the first four characters may be overwritten). The conditions under which this occurs are quite obscure and difficult to predict, although repeatable. If you need to be absolutely certain of the integrity of the data, read it in chunks of 65535 bytes or fewer.

There is code present specifically to prevent this problem - but owing to a 'stupidity' it is ineffective. sad

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls