HomeFreeBSD

www/chromium: fix obtaining HOST_NAME_MAX

Description

www/chromium: fix obtaining HOST_NAME_MAX

Using sysconf(3) API lead to accidental introduction of variable length arrays
(VLA) in the port. Additionally gethostname(3) has been passed _SC_HOST_NAME_MAX
incorrectly as the HOST_NAME_MAX length.

Fall back to using _POSIX_HOST_NAME_MAX as the remaining code is not ready for
introducing sysconf(3) as a patch.

Bump PORTREVISION to rebuild with the new patch.

Reviewed by: bapt
Sponsored by: Fudo Security
Differential Revision: https://reviews.freebsd.org/D30062

Details

Provenance
a.wolk_fudosecurity.comAuthored on Dec 15 2021, 6:34 PM
oshogboCommitted on Dec 15 2021, 6:40 PM
Reviewer
bapt
Differential Revision
D30062: www/chromium: fix obtaining HOST_NAME_MAX
Parents
R11:c134ad76a1ae: editors/texstudio: Update to 4.1.2
Branches
Unknown
Tags
Unknown