forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit89e0bac
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 parent077711c commit89e0bac
1 file changed
+56
-4
lines changedLines changed: 56 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| 102 | + | |
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
| |||
2932 | 2933 |
| |
2933 | 2934 |
| |
2934 | 2935 |
| |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2935 | 2939 |
| |
2936 | 2940 |
| |
2937 | 2941 |
| |
| |||
2953 | 2957 |
| |
2954 | 2958 |
| |
2955 | 2959 |
| |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
2956 | 2977 |
| |
2957 |
| - | |
2958 |
| - | |
2959 |
| - | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
2960 | 2985 |
| |
2961 |
| - | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2962 | 2993 |
| |
2963 | 2994 |
| |
2964 | 2995 |
| |
| |||
3053 | 3084 |
| |
3054 | 3085 |
| |
3055 | 3086 |
| |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
3056 | 3108 |
| |
3057 | 3109 |
| |
3058 | 3110 |
| |
|
0 commit comments
Comments
(0)