···147147 * table[0] points to the first inode lookup table metadata block,148148 * this should be less than lookup_table_start149149 */150150- if (!IS_ERR(table) && table[0] >= lookup_table_start) {150150+ if (!IS_ERR(table) && le64_to_cpu(table[0]) >= lookup_table_start) {151151 kfree(table);152152 return ERR_PTR(-EINVAL);153153 }
+1-1
fs/squashfs/fragment.c
···9090 * table[0] points to the first fragment table metadata block, this9191 * should be less than fragment_table_start9292 */9393- if (!IS_ERR(table) && table[0] >= fragment_table_start) {9393+ if (!IS_ERR(table) && le64_to_cpu(table[0]) >= fragment_table_start) {9494 kfree(table);9595 return ERR_PTR(-EINVAL);9696 }
+1-1
fs/squashfs/id.c
···9393 * table[0] points to the first id lookup table metadata block, this9494 * should be less than id_table_start9595 */9696- if (!IS_ERR(table) && table[0] >= id_table_start) {9696+ if (!IS_ERR(table) && le64_to_cpu(table[0]) >= id_table_start) {9797 kfree(table);9898 return ERR_PTR(-EINVAL);9999 }