Project

General

Profile

Bug #3793

pr_getsockname doesn't pass enough args to _so_getsockopt

Added by Rich Lowe over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
2013-05-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

_so_getsockopt grew an argument in the very distant past, it takes 6, the last one being a version.

usr/src/lib/libproc/common/pr_getsockname.c

as this though:

extern int _so_getsockopt(int, int, int, void *, int *);

usr/src/lib/libc/common/sys/_so_getsockopt.s

says:

/* C library -- _so_getsockopt                    */
/* int _so_getsockopt (int socket, int level, int option_name,    */
/*     void *option_value, size_t *option_len, int vers);    */

libproc is wrong. This same problem also exists in libc.h (and is how I came to discover this)

Also available in: Atom PDF