Commit 8d98819
committed
Require update permission for the large object written by lo_put().
lo_put() surely should require UPDATE permission, the same as lowrite(),
but it failed to check for that, as reported by Chapman Flack. Oversight
in commit c50b7c0; backpatch to 9.4 where that was introduced.
Tom Lane and Michael Paquier
Security: CVE-2017-75481 parent e568e1e commit 8d98819
File tree
3 files changed
+26
-0
lines changed- src
- backend/libpq
- test/regress
- expected
- sql
3 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
899 | 911 | | |
900 | 912 | | |
901 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1241 | 1249 | | |
1242 | 1250 | | |
1243 | 1251 | | |
| |||
1333 | 1341 | | |
1334 | 1342 | | |
1335 | 1343 | | |
| 1344 | + | |
| 1345 | + | |
1336 | 1346 | | |
1337 | 1347 | | |
1338 | 1348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
782 | 785 | | |
783 | 786 | | |
784 | 787 | | |
| |||
818 | 821 | | |
819 | 822 | | |
820 | 823 | | |
| 824 | + | |
821 | 825 | | |
822 | 826 | | |
823 | 827 | | |
| |||
0 commit comments