forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit02f013e
committed
Convert newlines to spaces in names written in pg_dump comments.
pg_dump was incautious about sanitizing object names that are emittedwithin SQL comments in its output script. A name containing a newlinewould at least render the script syntactically incorrect. Maliciouslycrafted object names could present a SQL injection risk when the scriptis reloaded.Reported by Heikki Linnakangas, patch by Robert HaasSecurity:CVE-2012-08681 parent850d341 commit02f013e
1 file changed
+56
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
2876 | 2877 | | |
2877 | 2878 | | |
2878 | 2879 | | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
2879 | 2883 | | |
2880 | 2884 | | |
2881 | 2885 | | |
| |||
2897 | 2901 | | |
2898 | 2902 | | |
2899 | 2903 | | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
2900 | 2921 | | |
2901 | | - | |
2902 | | - | |
2903 | | - | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
2904 | 2929 | | |
2905 | | - | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
2906 | 2937 | | |
2907 | 2938 | | |
2908 | 2939 | | |
| |||
2995 | 3026 | | |
2996 | 3027 | | |
2997 | 3028 | | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
2998 | 3050 | | |
2999 | 3051 | | |
3000 | 3052 | | |
| |||
0 commit comments
Comments
(0)