Re: src/usr.sbin/slowcgi: possible bug

2017-01-16 Thread Ali Farzanrad
Florian Obser wrotes: >On Mon, Jan 02, 2017 at 04:29:21PM +0330, temp+...@frad.ir wrote: >> Hi tech@, >> >> I recently checked the slowcgi(8) and found that it might have an issue >> when buf_pos is at the end of buffer and buf_len is zero. >> >> Am I right? > >we can simplify this even more.

Re: src/usr.sbin/slowcgi: possible bug

2017-01-13 Thread Florian Obser
On Mon, Jan 02, 2017 at 04:29:21PM +0330, temp+...@frad.ir wrote: > Hi tech@, > > I recently checked the slowcgi(8) and found that it might have an issue > when buf_pos is at the end of buffer and buf_len is zero. > > Am I right? we can simplify this even more. There is no need to remember the

Re: src/usr.sbin/slowcgi: possible bug

2017-01-02 Thread Ali Farzanrad
>I recently checked the slowcgi(8) and found that it might have an issue >when buf_pos is at the end of buffer and buf_len is zero. > >Am I right? It seems that all fastcgi blocks are aligned in 8-bytes and buffer size is 8+65535+255 = 65798 bytes which is not aligned in 8-bytes. It seems that

src/usr.sbin/slowcgi: possible bug

2017-01-02 Thread temp+101
Hi tech@, I recently checked the slowcgi(8) and found that it might have an issue when buf_pos is at the end of buffer and buf_len is zero. Am I right? Index: slowcgi.c === RCS file: /cvs/src/usr.sbin/slowcgi/slowcgi.c,v retrieving