search for: bytes_needed

Displaying 4 results from an estimated 4 matches for "bytes_needed".

2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
...ture properly. Did I pack it wrong to begin with? I should know this but I''m spacing out. proc_status = [0,0,0,0,0,0,0,0,0,0].pack(''LLLLLLLLLL'') enum_service = [0.chr, 0.chr].pack(''pp'') + proc_status service_buf = enum_service * 1000 bytes_needed = [0].pack(''L'') services_returned = [0].pack(''L'') resume_handle = [0].pack(''L'') bool = EnumServicesStatusEx( handle_scm, SC_ENUM_PROCESS_INFO, SERVICE_WIN32 | SERVICE_DRIVER, SERVICE_STATE_ALL, service_buf, service_bu...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...yte stream */ @@ -401,6 +417,26 @@ FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const if((size_t)channels * (size_t)bytes_per_sample > SIZE_MAX / (size_t)samples) return false; +#if defined(HAVE_OPENSSL) + /* Use stack for the most common cases, heap when bytes_needed is larger than 4032 (unlikely) + * Note that this is a _very_ conservative estimation. + */ +#if defined(_MSC_VER) +/* see http://msdn.microsoft.com/en-us/library/5471dc8s(v=vs.80).aspx for the rationale */ + FLAC__byte *tmp = _malloca(bytes_needed); +#else + const FLAC__bool usealloc...
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2. Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights: The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to
2005 Oct 05
10
xen 2.0 testing / DMA failure with ivtv-driver
Hi everyone, i''m currently try migrate my mythtv-server into an xen maschine but the ivtv-driver for my Hauppauge PVR350 doesn''t work. Now, a lot of googling and reading later i''m now here. I''ve an error which i can''t exactly allocate: is it an driver or an xen generated error ? I got with the ivtv-drivers following error: (0.2.x ivtv driver)