pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: printing with firefox3?



That was my experience too.

I copied the code into a small program and tried it.
No crashes even with the extra & (that doesn't say much though).

The code seems correct if the & is removed.
I am way out of my depth here, could it be stack related?

Maybe I should try malloc/free to see if that makes a difference.

Greg Troxel wrote:
I tried this patch to the cups package (in work/cups-1.3.9/cups), and
got a crash:

--- http.c.~1~  2008-08-01 14:33:16.000000000 -0400
+++ http.c      2009-01-28 09:18:02.000000000 -0500
@@ -1175,7 +1175,7 @@
   for (i = 0; i < sizeof(data); i ++)
     data[i] = rand(); /* Yes, this is a poor source of random data... */
- RAND_seed(&data, sizeof(data));
+  RAND_seed(data, sizeof(data));
 #endif /* HAVE_LIBSSL */
 }

I would be in favor of #if 0 the whole end of the function, at least for
now.

I wonder if the real problem is that the cups http code is assuming that
it can initialize OpenSSL, when probably other things have used it
already.


--
Kind regards,

Yorick Hardy


Home | Main Index | Thread Index | Old Index