Re: Where is strnlen() ?

2004-08-13 Thread Thordur Ivar B.
On Fri, 13 Aug 2004 02:15:19 +0300 Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2004-08-11 20:38, Thordur Ivar B. [EMAIL PROTECTED] wrote: On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway [EMAIL PROTECTED] wrote: On Wed, Aug 11, 2004 at 07:32:54PM +, Thordur Ivar B. wrote: While

Re: Where is strnlen() ?

2004-08-13 Thread gerarra
I agree but what I was thinking at the time if I'm reciving user input to a program wich uses strlen I might be vonerable to buffer overflow attacks (But that has been cleard up) and ofcourse in most cases you know the length of a string you are using (exept when you are dealing with user input,

Re: Where is strnlen() ?

2004-08-13 Thread Giorgos Keramidas
On 2004-08-11 20:38, Thordur Ivar B. [EMAIL PROTECTED] wrote: On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway [EMAIL PROTECTED] wrote: On Wed, Aug 11, 2004 at 07:32:54PM +, Thordur Ivar B. wrote: While porting software from a friend wich was developed under Linux, I stumbled upon an

Re: Where is strnlen() ?

2004-08-13 Thread Joerg Sonnenberger
On Fri, Aug 13, 2004 at 11:18:49AM +, Thordur Ivar B. wrote: I agree but what I was thinking at the time if I'm reciving user input to a program wich uses strlen I might be vonerable to buffer overflow attacks (But that has been cleard up) and ofcourse in most cases you know the length of a

Where is strnlen() ?

2004-08-11 Thread Thordur Ivar B.
While porting software from a friend wich was developed under Linux, I stumbled upon an error: src/socket.c:236: warning: implicit declaration of function `strnlen' Now my programming experience is nothing to brag about but I wonder why strnlen is not a part of FreeBSD's libc. I think that the

Re: Where is strnlen() ?

2004-08-11 Thread Kris Kennaway
On Wed, Aug 11, 2004 at 07:32:54PM +, Thordur Ivar B. wrote: While porting software from a friend wich was developed under Linux, I stumbled upon an error: src/socket.c:236: warning: implicit declaration of function `strnlen' Now my programming experience is nothing to brag about but I

Re: Where is strnlen() ?

2004-08-11 Thread James Housley
Thordur Ivar B. wrote: While porting software from a friend wich was developed under Linux, I stumbled upon an error: src/socket.c:236: warning: implicit declaration of function `strnlen' Now my programming experience is nothing to brag about but I wonder why strnlen is not a part of FreeBSD's

Re: Where is strnlen() ?

2004-08-11 Thread Thordur Ivar B.
On Wed, 11 Aug 2004 13:03:23 -0700 Kris Kennaway [EMAIL PROTECTED] wrote: On Wed, Aug 11, 2004 at 07:32:54PM +, Thordur Ivar B. wrote: While porting software from a friend wich was developed under Linux, I stumbled upon an error: src/socket.c:236: warning: implicit declaration of

Re: Where is strnlen() ?

2004-08-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Thordur Ivar B. [EMAIL PROTECTED] writes: : While porting software from a friend wich was developed under Linux, I stumbled : upon an error: src/socket.c:236: warning: implicit declaration of function : `strnlen' : : Now my programming experience is