forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0c3d51
committed
pg_freespacemap: Fix declaration of pg_freespace(regclass)
This function called generate_series() without enforcing its inputargument types, making possible for an attacker to catch this call, bydefining for example a generate_series(int,bigint).The internals of pg_freespace(regclass) are changed to force the use ofbigint for the inputs of generate_series(). A more consistent style isapplied for all its hardcoded values, while on it.Issue introduced in3f323eb.Reported-by: Noah MischReviewed-by: Noah MischDiscussion:https://postgr.es/m/20250106190428.ec.nmisch@google.com1 parent3f48294 commite0c3d51
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
|
0 commit comments
Comments
(0)