Commit f194626
fs: validate fds as int32s
This commit updates the JS layer's validation of file
descriptors to check for int32s >= 0 instead of uint32s.
PR-URL: #28984
Fixes: #28980
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 17d9495 commit f194626Copy full SHA for f194626
File tree
Expand file treeCollapse file tree
3 files changed
+43
-26
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
3 files changed
+43
-26
lines changedOpen diff view settings
Collapse file
+18-18Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
395 | 395 | |
396 | 396 | |
397 | 397 | |
398 | | - |
| 398 | + |
399 | 399 | |
400 | 400 | |
401 | 401 | |
402 | 402 | |
403 | 403 | |
404 | 404 | |
405 | | - |
| 405 | + |
406 | 406 | |
407 | 407 | |
408 | 408 | |
| ||
449 | 449 | |
450 | 450 | |
451 | 451 | |
452 | | - |
| 452 | + |
453 | 453 | |
454 | 454 | |
455 | 455 | |
| ||
487 | 487 | |
488 | 488 | |
489 | 489 | |
490 | | - |
| 490 | + |
491 | 491 | |
492 | 492 | |
493 | 493 | |
| ||
524 | 524 | |
525 | 525 | |
526 | 526 | |
527 | | - |
| 527 | + |
528 | 528 | |
529 | 529 | |
530 | 530 | |
| ||
564 | 564 | |
565 | 565 | |
566 | 566 | |
567 | | - |
| 567 | + |
568 | 568 | |
569 | 569 | |
570 | 570 | |
| ||
661 | 661 | |
662 | 662 | |
663 | 663 | |
664 | | - |
| 664 | + |
665 | 665 | |
666 | 666 | |
667 | 667 | |
| ||
670 | 670 | |
671 | 671 | |
672 | 672 | |
673 | | - |
| 673 | + |
674 | 674 | |
675 | 675 | |
676 | 676 | |
| ||
694 | 694 | |
695 | 695 | |
696 | 696 | |
697 | | - |
| 697 | + |
698 | 698 | |
699 | 699 | |
700 | 700 | |
701 | 701 | |
702 | 702 | |
703 | 703 | |
704 | | - |
| 704 | + |
705 | 705 | |
706 | 706 | |
707 | 707 | |
708 | 708 | |
709 | 709 | |
710 | 710 | |
711 | | - |
| 711 | + |
712 | 712 | |
713 | 713 | |
714 | 714 | |
715 | 715 | |
716 | 716 | |
717 | 717 | |
718 | | - |
| 718 | + |
719 | 719 | |
720 | 720 | |
721 | 721 | |
| ||
801 | 801 | |
802 | 802 | |
803 | 803 | |
804 | | - |
| 804 | + |
805 | 805 | |
806 | 806 | |
807 | 807 | |
| ||
832 | 832 | |
833 | 833 | |
834 | 834 | |
835 | | - |
| 835 | + |
836 | 836 | |
837 | 837 | |
838 | 838 | |
| ||
1065 | 1065 | |
1066 | 1066 | |
1067 | 1067 | |
1068 | | - |
| 1068 | + |
1069 | 1069 | |
1070 | 1070 | |
1071 | 1071 | |
| ||
1075 | 1075 | |
1076 | 1076 | |
1077 | 1077 | |
1078 | | - |
| 1078 | + |
1079 | 1079 | |
1080 | 1080 | |
1081 | 1081 | |
| ||
1126 | 1126 | |
1127 | 1127 | |
1128 | 1128 | |
1129 | | - |
| 1129 | + |
1130 | 1130 | |
1131 | 1131 | |
1132 | 1132 | |
| ||
1135 | 1135 | |
1136 | 1136 | |
1137 | 1137 | |
1138 | | - |
| 1138 | + |
1139 | 1139 | |
1140 | 1140 | |
1141 | 1141 | |
|
Collapse file
test/parallel/test-fs-fchown.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-fchown.js+24-7Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
| 11 | + |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
14 | 18 | |
15 | 19 | |
16 | 20 | |
| ||
22 | 26 | |
23 | 27 | |
24 | 28 | |
25 | | - |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
26 | 34 | |
27 | 35 | |
28 | 36 | |
| ||
32 | 40 | |
33 | 41 | |
34 | 42 | |
35 | | - |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
36 | 48 | |
37 | 49 | |
38 | 50 | |
39 | 51 | |
40 | 52 | |
41 | 53 | |
42 | 54 | |
43 | | - |
| 55 | + |
44 | 56 | |
45 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
46 | 63 | |
Collapse file
test/parallel/test-fs-utimes.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-utimes.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
210 | 210 | |
211 | 211 | |
212 | 212 | |
213 | | - |
| 213 | + |
214 | 214 | |
215 | 215 | |
216 | 216 | |
|
0 commit comments