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.
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.