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, Aug 13, 11:23 AM
Unknown Object (File)
Sat, Aug 8, 5:13 PM
Unknown Object (File)
Wed, Aug 5, 10:15 PM
Unknown Object (File)
Mon, Aug 3, 6:56 AM
Unknown Object (File)
Sun, Aug 2, 1:53 AM
Unknown Object (File)
Thu, Jul 30, 5:03 AM
Unknown Object (File)
Wed, Jul 29, 7:58 PM
Unknown Object (File)
Mon, Jul 27, 12:15 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