forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit71edbb6
committed
Avoid use of non-portable strnlen() in pgstat_clip_activity().
The use of strnlen rather than strlen was just paranoia. Instead ofgiving up on the paranoia, just implement the safeguarddifferently. And add a comment explaining why we're careful.Author: Andres FreundDiscussion:https://postgr.es/m/E1duOkJ-0001Mc-U5@gemulon.postgresql.org1 parent54b6cd5 commit71edbb6
2 files changed
+22
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6288 | 6288 | | |
6289 | 6289 | | |
6290 | 6290 | | |
6291 | | - | |
| 6291 | + | |
6292 | 6292 | | |
6293 | | - | |
6294 | | - | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
6295 | 6309 | | |
6296 | 6310 | | |
6297 | 6311 | | |
| |||
6303 | 6317 | | |
6304 | 6318 | | |
6305 | 6319 | | |
6306 | | - | |
| 6320 | + | |
| 6321 | + | |
| 6322 | + | |
| 6323 | + | |
6307 | 6324 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
| |||
0 commit comments
Comments
(0)