Commit 9bed827
committed
Fix configure's snprintf test so it exposes HP-UX bug.
Since commit e1d19c9, buildfarm member gharial has been failing with
symptoms indicating that snprintf sometimes returns -1 for buffer
overrun, even though it passes the added configure check. Some
google research suggests that this happens only in limited cases,
such as when the overrun happens partway through a %d item. Adjust
the configure check to exercise it that way. Since I'm now feeling
more paranoid than I was before, also make the test explicitly verify
that the buffer doesn't get physically overrun.1 parent b94f7b5 commit 9bed827
2 files changed
+14
-6
lines changed| 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 | | |
| |||
| 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