- 08 May, 2016 1 commit
-
-
Jeffrey Lee authored
Detail: s/CtrlUtils, s/OSGBPB - Avoid unnecessary remainder calculations in DivRem macro Admin: Tested on Cortex-A15 Version 2.84. Tagged as 'FileSwitch-2_84'
-
- 16 Jan, 2015 1 commit
-
-
Jeffrey Lee authored
Detail: s/CtrlUtils, s/DirStore, s/FSCtrl2, s/FSPath, s/FileSwBody, s/SysVars - Escape some dollars contained in strings to avoid warnings from objasm Admin: Resulting binary unchanged Version 2.83. Retagged as 'FileSwitch-2_83'
-
- 11 Nov, 2014 1 commit
-
-
Jeffrey Lee authored
Fix buffer overflow in *cat when dealing with long paths. Fix spurious errors when examining files with certain load addresses Detail: s/CtrlUtils - Increase MaxFilenameSpace (used to reserve stack space for *cat directory path) from 400 bytes to StaticName_length (i.e. 1K) s/FileTypes - Avoid IsFileTyped erroneously returning with V set if r2 is within a certain range (e.g. &7ff00000). Now all exits go via code that ensures V is clear. Admin: Tested on Raspberry Pi Version 2.83. Tagged as 'FileSwitch-2_83'
-
- 11 Mar, 2013 1 commit
-
-
Robert Sprowson authored
LowFSI: Max_BuffSize define changed. FileSwBody: Module workspace claim changed to claim Max_BuffSize in addition to the workspace required, so that all the variables in the workspace remain within ADR range. OSFind: Vetting of acceptable buffer sizes now produced with a WHILE/WEND loop. StreamBits: Changed to use 'free' flag rather then comparing with 'Nowt'. MkClean/MkRom: Throwback enabled. Tested in IOMD ROM, workspace manually inspected as OK. Version 2.82. Tagged as 'FileSwitch-2_82'
-
- 13 Jan, 2013 1 commit
-
-
Jeffrey Lee authored
Detail: s/FSCommon - Adjust ValidateR2R5_WriteToCoreCodeLoad to try and increase the wimpslot if it isn't already big enough to contain the region being validated (i.e. the program being loaded) s/FSControl - FSControl 4 now checks AIF memory limts and tries to extend wimpslot as necessary both before and after decompression. An extra 8K is added to the calculated memory requirements to take into account memory which isn't declared in the header (root stack chunk?) which is required by SCL initialisation. Admin: Tested in Iyonix ROM softload This should eliminate most/all of the "No writeable memory at this address", abort on data transfer, and "Not enough memory for C library" errors users receive due to the wimpslot being too small when all they want to do is run a program Version 2.81. Tagged as 'FileSwitch-2_81'
-
- 05 Jan, 2013 1 commit
-
-
Robert Sprowson authored
Checked with a ROM build for conflicts, no clashes seen. Version 2.80. Not tagged
-
- 09 Dec, 2012 1 commit
-
-
Robert Sprowson authored
Version 2.80. Not tagged
-
- 02 Dec, 2012 1 commit
-
-
Robert Sprowson authored
In OS_Find there is a call to TopPath_DoBusinessToPath in DoTheOpen, any V set exits from this are propagated to the user correctly. Non V set exits (ie. the object type is returned) are passed to DoTheOpen_Common which in turn calls TryToOpenFile. TryToOpenFile (if fscb is not Nowt) dereferences it to get at the info word. A problem exists where TopPath_DoBusinessToPath fails the policing check - when multipart paths are permitted (such as OS_Find) it swallows the error, steps the path, and eventually exits with an object type 0. However, this code path never sets up the fscb. So when TryToOpenFile dereferences it (in testing it seemed to have some address in the kernel lingering) depending on your luck the fsinfo_alwaysopen bit might be set. This in turn triggers a forced call to the low level FS entry point, and the entry point is some garbage address leading to an abort. The minimalist test cases were SYS"OS_Find",&41,"MyName","MyPath$" SYS"OS_Find",&49,"MyName","MyPath$" both of which fail the policing step because the incorrect use of the path type bits mean the attempted name becomes MyPath$MyName and you can't have '$' in the middle of a filename. Other more complex examples exist, including having a multipart path where one of the path elements in invalid. Solved here by setting fscb up to a default (valid) value. Fixes ticket #287. Version 2.80. Tagged as 'FileSwitch-2_80'
-
- 19 Nov, 2012 2 commits
-
-
Robert Sprowson authored
The corresponding external interface, OS_Args 6, takes a byte size in R2 which is passed on verbatim. However, when FileSwitch wants to do the same operation it rounds up to the nearest buffer size and complains the operation can't complete ("File too big") when the same operation through OS_Args would succeed. Internally FileSwitch doesn't actually use the allocated size for anything (other than to avoid unnecesary ensures, and to cache the value for read back via OS_Args 4), so the full byte range of R2 is now allowed internally as well as externally. FSEntry_Open may also pass back 0xFFFFFFFF as the allocated size on opening similarly. FSEntry_Args 7 and FSEntry_Args 4 are the corresponding low level API, these are unchanged in meaning. The FSEntry_Args 8, write 0s to file (usually triggered by extending with EXT#handle=number), is defined as always passing the file offset as a multiple of the buffer size, and the number of 0s to write as a multiple of the buffer size. To allow this to write up to 4G of 0s while not spilling over R3, FileSwitch now splits such a call into one buffer, followed by the remainder. Tested with LanManFS 2.38, checking operations are split appropriately. Version 2.79. Tagged as 'FileSwitch-2_79'
-
Robert Sprowson authored
Not tagged.
-
- 15 Jul, 2012 1 commit
-
-
Ben Avison authored
Detail: With *Copy A, and the related SWI OS_FSControl 26 with R3 bit 9 clear, if a directory was copied over an image file, the contents of the directory would be copied (assuming recursive) but then when the attributes were copied over, the directory's filetype (usually FFD, Data) and user access bits (both 0) were copied to the destination image file, rendering it unusable. Admin: Tested on a Raspberry Pi with the DOS partition in the standard disc image. Version 2.78. Tagged as 'FileSwitch-2_78'
-
- 09 Jul, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/FSControl - faff_boot_option_startup (OS_FSControl 47/48) was acting as if it was given a path variable in r3, but neither of those calls use path variables, leading to aborts in some situations due to random bits of memory being peeked at. s/FSUtils - When CopyWildObject performs a single object copy, it wasn't taking into account the fact that the src/dest leafname pointers could be null, potentially causing a crash if high processor vectors are in use. Since I'm not 100% sure what the correct course of action is (in the case I saw it crash, both src and dest leafnames were null), and there aren't any bugs I know of with file copies using the wrong names, the code now uses the dest leafname if the dest leafname is null. This sounds wrong, but matches the behaviour of the old code, since byte &00000000 is highly unlikely to contain a '*' character Admin: Tested on BB-xM with high processor vectors Version 2.77. Tagged as 'FileSwitch-2_77'
-
- 09 Apr, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/TopPath - Code which attempted to free the cleaned up user's path incorrectly assumed that it could find the string via the stacked R0. However stacked regs R0-R6 get updated with the found objects details, so we need to store a copy of the users R0 elsewhere and free the string via that instead. Admin: Fixes OS_FSControl 37 (and other operations?) filling the system heap if given paths which will generate errors (e.g. if drive empty/missing) Version 2.76. Tagged as 'FileSwitch-2_76'
-
- 18 Mar, 2012 1 commit
-
-
Robert Sprowson authored
Retagged as FileSwitch-2_75.
-
- 20 Feb, 2012 2 commits
-
-
Robert Sprowson authored
-
Robert Sprowson authored
Was returning internal value 'Nowt' instead of zero. This bug seems to have appeared in FileSwitch 1.70 in RISC OS 3.00 and as such for backwards compatibility the value 0 and the value 0x40000000 should be taken to mean 'none'. Version 2.75. Tagged as 'FileSwitch-2_75'
-
- 27 Nov, 2011 4 commits
-
-
Robert Sprowson authored
Version 2.74. Tagged as 'FileSwitch-2_74'
-
Robert Sprowson authored
Delete dead macro. Ammend OS_FSControl 28 API to aloow report of 64 bit results. On failing to get any memory at all for *COPY an attempt is made to grab an 'excessive' amount of RMA to get an error message, but this was only requesting 32MB which is now quite feasible - now asks for 2GB. Version 2.73. Tagged as 'FileSwitch-2_73'
-
Robert Sprowson authored
Collapse old switches. Remove 'Version' GBLA. *COUNT summary now says "total 1234 bytes" not "1234 bytes" to match *COPY Empty *COUNT syntax message corrected. Binary identical to last version (messages different clearly). Version 2.72. Tagged as 'FileSwitch-2_72'
-
Robert Sprowson authored
Delete unused 'KernelFSW'. HighFSI Retire some crusty definitions Reserve OS_FSControl reason codes used by ROL Version 2.71. Tagged as 'FileSwitch-2_71'
-
- 22 Oct, 2011 1 commit
-
-
Robert Sprowson authored
-
- 20 Oct, 2011 1 commit
-
-
Robert Sprowson authored
Same drill, V was being set or not preserved when it shouldn't or should be. In light of this all locations that do CMP/SUBS/ADDS involving fileptr/extent/anything ending in size or length have been reviewed and ammended where needed. Trim some dead code. Discard 'Version' file. Version 2.70. Tagged as 'FileSwitch-2_70'
-
- 16 Oct, 2011 2 commits
-
-
Robert Sprowson authored
Retagged as FileSwitch-2_69.
-
Robert Sprowson authored
In OS_Args 1 a compare was followed by a conditional store, but with files > 2G some circumstances end up with VS so the store wasn't taken. In OS_GBPB 3/4 the assessment of how much could be done was based on adding the current fileptr to the request but not respecting the carry out. Reordered the equation to get this calculation right. Changed a signed compare of a byte variable to use unsigned so auditing of signed condition codes is clearer. Corrected spelling of 'openning'. Fix copy_srchandle and copy_dsthandle to not assume handles fit in 1 byte. Tested on a variety of contrived file sizes at the boundaries of 2G and 4G. Version 2.69. Tagged as 'FileSwitch-2_69'
-
- 04 Aug, 2011 1 commit
-
-
Jeffrey Lee authored
Detail: s/FileSwBody, s/FileSwHdr - Try getting DomainId pointer via OS_ReadSysInfo 6 before falling back on legacy address. Store result in workspace for speedy lookup. s/FSCommon - Use workspace DomainId pointer s/CtrlUtils - Update int_ConstructFullPathWithoutFSAndSpecial to not attempt to append the contents of null string pointers. s/FSControl - Update AppendStringIfNotNull to ignore null pointers s/LowLevel - Update CallFSFile_Given to not try copying from null special field strings Admin: Tested on rev A2 BB-xM. AFAIK the null pointer bugs are all FileSwitch bugs and not bugs in whatever called FileSwitch, although I may be wrong. Not entirely sure how some of the code managed to read strings from null pointers without creating garbage filenames as a result! Version 2.68. Tagged as 'FileSwitch-2_68'
-
- 15 Jun, 2009 1 commit
-
-
Ben Avison authored
Detail: s.LowLevel: STRNE should have been STRNEB. Looks like this meant that OS_File 5 was broken if the object name contained a filing system special field. Added ENTRY directive to permit building of GPA debug listing. Admin: Built but not tested (should be a safe change). Version 2.67. Tagged as 'FileSwitch-2_67'
-
- 11 Jun, 2009 1 commit
-
-
Ben Avison authored
Detail: Uses suffixed file extensions for compatiblity with both objasm and asasm. Admin: Supplied by Peter Naulls, tested at ROOL Version 2.66. Not tagged
-
- 01 Jul, 2004 1 commit
-
-
Kevin Bracey authored
Version 2.66. Tagged as 'FileSwitch-2_66'
-
- 12 Dec, 2002 1 commit
-
-
Kevin Bracey authored
More 32-bit fixes; all to do with coping with the system heap, ROM etc being in new places - these are now checked at run-time. Version 2.65. Tagged as 'FileSwitch-2_65'
-
- 20 Aug, 2001 1 commit
-
-
Dan Ellis authored
Detail: Code has been added to fileswitch to detect whether there is sufficient memory for a program to execute, and report a sensible error rather than aborting in it's initialistion code. This implicitly relied on R12 in the error routines, which was being corrupted. R12 register usage has now replaced by other safe registers. This was exacerbated by incorrectly formed AIF headers, such as those generated by at least some versions of the Easy C Linker, which don't have correct entries for the size of the data areas of the file. Admin: Tested on a RPC. The system appears to work correctly, and malformed AIF headers cause the error to be raised without other harm. Version 2.64. Tagged as 'FileSwitch-2_64'
-
- 04 Jun, 2001 1 commit
-
-
Stewart Brodie authored
Admin: Tested - and it doesn't result in FileCore in use errors any more. Version 2.63. Tagged as 'FileSwitch-2_63'
-
- 02 Jun, 2001 1 commit
-
-
Stewart Brodie authored
Detail: R12 cannot be corrupted until FileSwitch is committed to starting the new application. Changed code to not use R12 any more until it is 100% sure that the application is going to be launched come what may. Admin: Not built; not tested - but version 2.61 is not useful. Should work now. Version 2.62. Tagged as 'FileSwitch-2_62'
-
- 30 May, 2001 1 commit
-
-
Stewart Brodie authored
Detail: AIF headers declare how much space they are going to need in addition to the size of the executable on the filesystem. This information is now extracted by FileSwitch to validate that the memory limit will not be exceeded. Admin: Built. Not tested. Version 2.61. Tagged as 'FileSwitch-2_61'
-
- 14 May, 2001 1 commit
-
-
Dan Ellis authored
Closing a file now allows the underlying filing system to object, preventing the file from being closed. Detail: The error return from the underlying filing system wasn't being used to prevent the fileswitch record for the open file being removed. This resulted in the underlying filing system not being able to prevent closure of a file handle. This behaviour is relied upon by PipeFS when it returns an error from the Sleep No More UpCall. Admin: Tested on RPC. Note that the 32 bit build doesn't work on the 26 bit desktop for no identified reason. Version 2.60. Tagged as 'FileSwitch-2_60'
-
- 10 May, 2001 1 commit
-
-
Kevin Bracey authored
Version 2.59. Tagged as 'FileSwitch-2_59'
-
- 17 Apr, 2001 2 commits
-
-
David Cotton authored
Detail: The version of Stewart's notes that I was using to convert the component to support ObjAsm was out of date, and hence missed out a couple of sections on converting Asm headers to C headers and tokenisation. This would only have been picked up when building straight out of CVS. A classic case of RTLM (read the latest manual). However, doing this work showed up a bit missing from Stewart's notes, so it is really a case of RTLMWSHWI, or read the latest manual when Stewart has written it). ;-) The makefile has been altered to ensure that the correct operations occur. Admin: Not tested in a build. Checked the logs from running export headers, libs, resources and rom phases against a pre-objasm build and verified that all the same steps are occuring. Version 2.58. Tagged as 'FileSwitch-2_58'
-
David Cotton authored
Detail: As above. No other changes. Admin: Tested in a Lazarus build. Version 2.57. Tagged as 'FileSwitch-2_57'
-
- 04 Apr, 2001 1 commit
-
-
Dan Ellis authored
Detail: OS_Args 8 and 9 (ImageStampIS and IOCtl) didn't check that the file handle passed to them was legitimate and hence would cause data aborts as they tried to access non existant structures. Admin: Not tested. Two lines of assembler copied into each function to test whether the file handle is valid from other similar calls. Version 2.56. Tagged as 'FileSwitch-2_56'
-
- 03 Apr, 2001 1 commit
-
-
Ben Avison authored
Detail: UpCall 3 (ModifyingFile) is no longer issued by OS_File 24 (ReadBlockSize). Admin: Not tested. Version 2.55. Tagged as 'FileSwitch-2_55'
-
- 19 Mar, 2001 1 commit
-
-
Stewart Brodie authored
Detail: It is not legal for lines to end in \ unless the intention is that the line be rejoined. This caused a structure member to be missing in the filing system header file which could have caused absolute havoc. Assertions are dead useful ... Admin: Built. Required by SystemDevices 1.30 or later (and other components) Version 2.54. Tagged as 'FileSwitch-2_54'
-