2010/12/9 Enlightenment SVN <[email protected]>:
> Log:
> this error fix is dedicated to Tommy[D] for continuing to prove that the
> impossible can still be possible on his system
>
>
> Author: discomfitor
> Date: 2010-12-09 13:02:53 -0800 (Thu, 09 Dec 2010)
> New Revision: 55432
> Trac: http://trac.enlightenment.org/e/changeset/55432
>
> Modified:
> trunk/ecore/src/lib/ecore_con/ecore_con.c
>
> Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore_con/ecore_con.c 2010-12-09 18:39:08 UTC (rev
> 55431)
> +++ trunk/ecore/src/lib/ecore_con/ecore_con.c 2010-12-09 21:02:53 UTC (rev
> 55432)
> @@ -2231,15 +2231,17 @@
> if (!svr->write_buf)
> return;
>
> + num = svr->write_buf_size - svr->write_buf_offset;
> +
> /* check whether we need to write anything at all.
> * we must not write zero bytes with SSL_write() since it
> * causes undefined behaviour
> */
> - if (svr->write_buf_size == svr->write_buf_offset)
> - return;
> + /* we thank Tommy[D] for needing to check negative buffer sizes
> + * here because his system is amazing.
> + */
> + if (num <= 0) return;
>
How can you get to that point without something else screwing up before?
It looks like you wrote more than you had in your buffer.
> - num = svr->write_buf_size - svr->write_buf_offset;
> -
> if (svr->handshaking)
> {
> DBG("Continuing ssl handshake");
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel