BBC BASIC for Windows
General >> General Board >> Bug in GET$#file function
http://bb4w.conforums.com/index.cgi?board=general&action=display&num=1441364971

Bug in GET$#file function
Post by dfeugey 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.