forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2da8c4c
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 parent3d4e841 commit2da8c4c
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 | |
---|---|---|---|
| |||
2254 | 2254 |
| |
2255 | 2255 |
| |
2256 | 2256 |
| |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
2257 | 2265 |
| |
2258 | 2266 |
| |
2259 |
| - | |
2260 |
| - | |
2261 | 2267 |
| |
2262 | 2268 |
| |
2263 | 2269 |
| |
|
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)