forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita50e4fd
committed
Prevent buffer overrun in read_tablespace_map().
Robert Foggia of Trustwave reported that read_tablespace_map()fails to prevent an overrun of its on-stack input buffer.Since the tablespace map file is presumed trustworthy, this doesnot seem like an interesting security vulnerability, but stillwe should fix it just in the name of robustness.While here, document that pg_basebackup's --tablespace-mapping optiondoesn't work with tar-format output, because it doesn't. To make itwork, we'd have to modify the tablespace_map file within the tarballsent by the server, which might be possible but I'm not volunteering.(Less-painful solutions would require changing the basebackup protocolso that the source server could adjust the map. That's not veryappetizing either.)1 parent081876d commita50e4fd
File tree
2 files changed
+8
-2
lines changed- doc/src/sgml/ref
- src/backend/access/transam
2 files changed
+8
-2
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| 164 | + | |
164 | 165 |
| |
165 | 166 |
| |
166 | 167 |
| |
| |||
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
244 |
| - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
245 | 251 |
| |
246 | 252 |
| |
247 | 253 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11959 | 11959 |
| |
11960 | 11960 |
| |
11961 | 11961 |
| |
11962 |
| - | |
| 11962 | + | |
11963 | 11963 |
| |
11964 | 11964 |
| |
11965 | 11965 |
| |
|
0 commit comments
Comments
(0)