forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7cb964a
committed
Fix buffer overrun in isolation test program.
Commit061b88c saved argv0 to aglobal buffer without ensuring that it was zero terminated,allowing references to it to overrun the buffer and access othermemory. This probably would not have presented any security risk,but could have resulted in very confusing failures if the path tothe executable was very long.Reported by David Rowley1 parent71dd54a commit7cb964a
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
| 101 | + | |
| 102 | + | |
101 | 103 |
| |
102 | 104 |
| |
103 | 105 |
| |
| |||
107 | 109 |
| |
108 | 110 |
| |
109 | 111 |
| |
110 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 |
| |
112 | 120 |
| |
113 | 121 |
| |
|
0 commit comments
Comments
(0)