forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9bed827
committed
Fix configure's snprintf test so it exposes HP-UX bug.
Since commite1d19c9, buildfarm member gharial has been failing withsymptoms indicating that snprintf sometimes returns -1 for bufferoverrun, even though it passes the added configure check. Somegoogle research suggests that this happens only in limited cases,such as when the overrun happens partway through a %d item. Adjustthe configure check to exercise it that way. Since I'm now feelingmore paranoid than I was before, also make the test explicitly verifythat the buffer doesn't get physically overrun.1 parentb94f7b5 commit9bed827
2 files changed
+14
-6
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
205 |
| - | |
| 205 | + | |
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
| 246 | + | |
| 247 | + | |
246 | 248 |
| |
247 | 249 |
| |
248 |
| - | |
| 250 | + | |
249 | 251 |
| |
250 | 252 |
| |
251 | 253 |
| |
| |||
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
257 |
| - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 |
| |
259 | 264 |
| |
260 | 265 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16378 | 16378 |
| |
16379 | 16379 |
| |
16380 | 16380 |
| |
16381 |
| - | |
16382 |
| - | |
| 16381 | + | |
| 16382 | + | |
16383 | 16383 |
| |
16384 | 16384 |
| |
16385 | 16385 |
| |
| |||
16395 | 16395 |
| |
16396 | 16396 |
| |
16397 | 16397 |
| |
16398 |
| - | |
| 16398 | + | |
| 16399 | + | |
| 16400 | + | |
| 16401 | + | |
16399 | 16402 |
| |
16400 | 16403 |
| |
16401 | 16404 |
| |
|
0 commit comments
Comments
(0)