Page MenuHomeFreeBSD

libc/yp: fix memory issues and compiler warnings in xdryp.c
Needs ReviewPublic

Authored by aalx2176_gmail.com on Apr 27 2026, 8:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 18, 10:51 PM
Unknown Object (File)
Wed, Jun 17, 10:46 PM
Unknown Object (File)
May 18 2026, 11:44 AM
Unknown Object (File)
May 15 2026, 7:35 AM
Unknown Object (File)
May 14 2026, 10:29 PM
Unknown Object (File)
May 11 2026, 7:54 PM
Unknown Object (File)
May 8 2026, 10:16 AM
Unknown Object (File)
May 8 2026, 8:55 AM
Subscribers

Details

Reviewers
None
Group Reviewers
Src Committers
Contributor Reviews (src)
Summary
  • Move bzero() inside the while loop
  • Add malloc() u_int overflow check
  • Fix use-after-free by moving xdr_free() to cleanup block
  • Fix warnings in xdr_free() by casting function pointers to (void *)
  • Add missing headers and forward declarations
Test Plan

Compiled with -Weverything -Wno-unsafe-buffer-usage -Wno-sign-conversion

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 72588
Build 69471: arc lint + arc unit