forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit291ec6e
committed
Suppress integer-overflow compiler warning for inconsistent sun_len.
On AIX 7.1, struct sockaddr_un is declared to be 1025 bytes long,but the sun_len field that should hold the length is only a byte.Clamp the value we try to store to ensure it will fit in the field.(This coding might need adjustment if there are any machines outthere where sun_len is as wide as size_t; but a preliminary surveysuggests there's not, so let's keep it simple.)Discussion:https://postgr.es/m/2781112.1644819528@sss.pgh.pa.us1 parentfd2abeb commit291ec6e
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 |
| |
236 |
| - | |
| 245 | + | |
| 246 | + | |
237 | 247 |
| |
238 | 248 |
| |
239 | 249 |
| |
|
0 commit comments
Comments
(0)