forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2d2f63d
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 parente6fcb03 commit2d2f63d
1 file changed
+56
-4
lines changedLines changed: 56 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
| 100 | + | |
100 | 101 |
| |
101 | 102 |
| |
102 | 103 |
| |
| |||
2939 | 2940 |
| |
2940 | 2941 |
| |
2941 | 2942 |
| |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
2942 | 2946 |
| |
2943 | 2947 |
| |
2944 | 2948 |
| |
| |||
2960 | 2964 |
| |
2961 | 2965 |
| |
2962 | 2966 |
| |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
2963 | 2984 |
| |
2964 |
| - | |
2965 |
| - | |
2966 |
| - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
2967 | 2992 |
| |
2968 |
| - | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
2969 | 3000 |
| |
2970 | 3001 |
| |
2971 | 3002 |
| |
| |||
3060 | 3091 |
| |
3061 | 3092 |
| |
3062 | 3093 |
| |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
3063 | 3115 |
| |
3064 | 3116 |
| |
3065 | 3117 |
| |
|
0 commit comments
Comments
(0)