commit | c4c7a5e6bc730c4a1befc9470d7cc06adfc5a1fc | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Thu Dec 14 00:08:56 2023 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Thu Dec 14 00:08:56 2023 +0100 |
tree | c7d807cdfdf17c33d07b70c226db3be2a863bfbc | |
parent | fffc8c121d0748c91f9aca40e5e94c0e0bbfd9e0 [diff] [blame] |
ext2: Fix off-by-one
diff --git a/src/filo-fs-ext2.adb b/src/filo-fs-ext2.adb index 3f82377..7cf6147 100644 --- a/src/filo-fs-ext2.adb +++ b/src/filo-fs-ext2.adb
@@ -517,7 +517,7 @@ Success := Length > 0 and then - Logical_Off <= FSBlock_Logical'Last - Length + 1 and then + Logical_Off <= FSBlock_Logical'Last - Length and then Logical < Logical_Off + Length; if Success then Physical := Physical + FSBlock_Offset (Logical - Logical_Off);