Commit 9c06103
src: fix validation of negative offset to avoid abort
Fixes: #24640
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: #38421
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>1 parent 6350d35 commit 9c06103Copy full SHA for 9c06103
File tree
Expand file treeCollapse file tree
5 files changed
+65
-10
lines changedOpen diff view settings
Filter options
- lib
- internal/fs
- test/parallel
Expand file treeCollapse file tree
5 files changed
+65
-10
lines changedOpen diff view settings
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
630 | 630 | |
631 | 631 | |
632 | 632 | |
633 | | - |
| 633 | + |
634 | 634 | |
635 | 635 | |
636 | 636 | |
| ||
694 | 694 | |
695 | 695 | |
696 | 696 | |
697 | | - |
| 697 | + |
698 | 698 | |
699 | 699 | |
700 | 700 | |
| ||
806 | 806 | |
807 | 807 | |
808 | 808 | |
809 | | - |
| 809 | + |
810 | 810 | |
811 | 811 | |
812 | 812 | |
| ||
863 | 863 | |
864 | 864 | |
865 | 865 | |
866 | | - |
| 866 | + |
867 | 867 | |
868 | 868 | |
869 | 869 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
417 | 417 | |
418 | 418 | |
419 | 419 | |
420 | | - |
| 420 | + |
421 | 421 | |
422 | 422 | |
423 | 423 | |
| ||
460 | 460 | |
461 | 461 | |
462 | 462 | |
463 | | - |
| 463 | + |
464 | 464 | |
465 | 465 | |
466 | 466 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
655 | 655 | |
656 | 656 | |
657 | 657 | |
| 658 | + |
| 659 | + |
| 660 | + |
| 661 | + |
658 | 662 | |
659 | 663 | |
660 | 664 | |
|
Collapse file
test/parallel/test-fs-read-type.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-read-type.js-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
48 | | - |
49 | 47 | |
50 | 48 | |
51 | 49 | |
| ||
157 | 155 | |
158 | 156 | |
159 | 157 | |
160 | | - |
161 | | - |
162 | 158 | |
163 | 159 | |
164 | 160 | |
|
Collapse file
test/parallel/test-fs-write-negativeoffset.js
Copy file name to clipboard+55Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
0 commit comments