forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitab7032b
committed
Tighten pg_get_object_address argument checking
For publication schemas (OBJECT_PUBLICATION_NAMESPACE) and usermappings (OBJECT_USER_MAPPING), pg_get_object_address() checked thearray length of the second argument, but not of the first argument.If the first argument was too long, it would just silently ignoreeverything but the first argument. Fix that by checking the length ofthe first argument as well.Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/caaef70b-a874-1088-92ef-5ac38269c33b%40enterprisedb.com1 parent1d39552 commitab7032b
File tree
3 files changed
+20
-8
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+20
-8
lines changedLines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2239 | 2239 |
| |
2240 | 2240 |
| |
2241 | 2241 |
| |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
2242 | 2250 |
| |
2243 | 2251 |
| |
2244 |
| - | |
2245 |
| - | |
2246 | 2252 |
| |
2247 | 2253 |
| |
2248 | 2254 |
| |
|
Lines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
316 | 322 |
| |
317 | 323 |
| |
318 | 324 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
|
0 commit comments
Comments
(0)