forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e0e148
committed
pq_getstr didn't handle buffer overrun correctly; it would
fail to consume the rest of the input string, and worse it would writeone more byte than it should into the buffer, probably resulting in coredump.Fortunately there's a correct implementation next door in pqcomprim.c.1 parente50feea commit9e0e148
1 file changed
+13
-26
lines changedLines changed: 13 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 |
| |
112 | 115 |
| |
113 | 116 |
| |
| |||
119 | 122 |
| |
120 | 123 |
| |
121 | 124 |
| |
| 125 | + | |
| 126 | + | |
122 | 127 |
| |
123 | 128 |
| |
124 | 129 |
| |
| |||
181 | 186 |
| |
182 | 187 |
| |
183 | 188 |
| |
184 |
| - | |
185 |
| - | |
| 189 | + | |
186 | 190 |
| |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
| 191 | + | |
193 | 192 |
| |
194 | 193 |
| |
195 | 194 |
| |
| |||
198 | 197 |
| |
199 | 198 |
| |
200 | 199 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
| 200 | + | |
204 | 201 |
| |
205 | 202 |
| |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
211 | 206 |
| |
212 | 207 |
| |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
| 208 | + | |
222 | 209 |
| |
223 | 210 |
| |
224 | 211 |
| |
|
0 commit comments
Comments
(0)