Commit 68f2359
ntfs: remove redundant out-of-bound checks
Remove redundant out-of-bounds validations.
Since ntfs_attr_find and ntfs_external_attr_find
now validate the attribute value offsets and
lengths against the bounds of the MFT record block,
performing subsequent bounds checking in caller
functions like ntfs_attr_lookup is no longer necessary.
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent 51cd9a1 commit 68f2359
3 files changed
Lines changed: 0 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | 760 | | |
767 | 761 | | |
768 | 762 | | |
| |||
849 | 843 | | |
850 | 844 | | |
851 | 845 | | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | 846 | | |
860 | 847 | | |
861 | 848 | | |
| |||
954 | 941 | | |
955 | 942 | | |
956 | 943 | | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | 944 | | |
962 | 945 | | |
963 | 946 | | |
| |||
1552 | 1535 | | |
1553 | 1536 | | |
1554 | 1537 | | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | 1538 | | |
1560 | 1539 | | |
1561 | 1540 | | |
| |||
1999 | 1978 | | |
2000 | 1979 | | |
2001 | 1980 | | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
2009 | 1981 | | |
2010 | 1982 | | |
2011 | 1983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
| |||
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | 291 | | |
297 | 292 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 293 | | |
302 | 294 | | |
303 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
1516 | 1515 | | |
1517 | 1516 | | |
1518 | 1517 | | |
1519 | 1518 | | |
1520 | 1519 | | |
1521 | 1520 | | |
1522 | 1521 | | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | 1522 | | |
1529 | 1523 | | |
1530 | 1524 | | |
| |||
0 commit comments