Page MenuHomeFreeBSD

Use a platform independent value for PKG_MAX_SIZE.
ClosedPublic

Authored by markj on Jul 12 2019, 9:42 PM.

Details

Summary

The maximum number of rights one can send over a unix socket is
platform-dependent. Use a platform-indepdent value for the maximum in
libnv so that 32-bit applications work when running on a 64-bit kernel.
This is necessary so long as the freebsd32 compat layer incorrect
applies the 64-bit limit, which is smaller than the 32-bit limit.

Test Plan

This fixes PR 238511.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj created this revision.Jul 12 2019, 9:42 PM
markj edited the test plan for this revision. (Show Details)
oshogbo accepted this revision.Jul 16 2019, 3:26 AM
This revision is now accepted and ready to land.Jul 16 2019, 3:26 AM
This revision was automatically updated to reflect the committed changes.