search for: _buf

Displaying 20 results from an estimated 31 matches for "_buf".

2004 Oct 21
3
RE: build errors on cvs
Building on Solaris 8 with Sun's compiler, I get the following error. Would you fix this? Using gcc is not really a good option for me. /opt/forte8/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/csw/inclu\de -fast -xarch=v8 -I/opt/csw/include -c buffer.c "buffer.c", line 159: void function cannot return value "buffer.c", line 205: void function cannot return
2006 Nov 26
1
Patch for optiups to support Zinto D from ONLINE USV-Systeme AG
...cense, or @@ -50,6 +53,7 @@ #define OPTI_MINPOLL "status_only" #define OPTI_FAKELOW "fake_lowbatt" #define OPTI_NOWARN_NOIMP "nowarn_noimp" +#define OPTI_ZINTO "zinto" /* All serial commands put their response in the same buffer space */ static char _buf[256]; @@ -79,6 +83,14 @@ { "FF", "input.frequency", 0.1 }, { "BT", "ups.temperature" }, }; +static ezfill _pollv_zinto[] = { + { "NV", "input.voltage", 2.0 }, + { "OL", "ups.load", 1.0 }, + { "OV", "...
2009 Aug 03
0
[PATCH] guestfs: fix typo in my recent change
...int errnum = errno; va_start (args, fs); int err = vasprintf (&msg, fs, args); @@ -450,11 +450,11 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...) #ifndef _GNU_SOURCE char buf[256]; - strerror_r (err, buf, sizeof buf); + strerror_r (errnum, buf, sizeof buf); #else char _buf[256]; char *buf; - buf = strerror_r (err, _buf, sizeof _buf); + buf = strerror_r (errnum, _buf, sizeof _buf); #endif msg = safe_realloc (g, msg, strlen (msg) + 2 + strlen (buf) + 1); -- 1.6.4.212.g4719
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...+celt_uint32 ec_tell_frac(ec_ctx *_this); #endif diff --git a/libcelt/entdec.c b/libcelt/entdec.c index f5676c6..8b4d2ee 100644 --- a/libcelt/entdec.c +++ b/libcelt/entdec.c @@ -125,7 +125,7 @@ static void ec_dec_normalize(ec_dec *_this){ } } -void ec_dec_init(ec_dec *_this,unsigned char *_buf,ec_uint32 _storage){ +void ec_dec_init(ec_dec *_this,unsigned char *_buf,celt_uint32 _storage){ _this->buf=_buf; _this->storage=_storage; _this->end_offs=0; @@ -160,7 +160,7 @@ unsigned ec_decode_bin(ec_dec *_this,unsigned _bits){ } void ec_dec_update(ec_dec *_this,unsigned _f...
2006 Dec 20
0
Erubis / Rails Question
I''m trying to figure out whether the fix for an error I get when using Erubis belongs to Erubis or Rails so I can submit a bug/patch/whatever. When you use form_for in an Erubis template the instance_eval uses _erbout instead of _buf. I found the solution [adding ActionView::Base.erb_variable= "_buf" to the setup in app/controllers/application.rb] but in searching out information about this I discovered that there was a recent Edge Rails patch to use _buf instead of _erbout. I''m thinking it just needs to be r...
2016 Apr 29
2
Backtrace:dovecot/imap
...Reading symbols from /usr/lib/dovecot/imap...Reading symbols from /usr/lib/debug/.build-id/5a/15dc6951744d026af424747e7b72a4fb550c6b.debug...done. done. [New LWP 21869] Core was generated by `dovecot/imap'. Program terminated with signal SIGSEGV, Segmentation fault. #0 buffer_delete (_buf=0x0, pos=0, size=0) at buffer.c:213 #0 buffer_delete (_buf=0x0, pos=0, size=0) at buffer.c:213 buf = 0x0 end_size = <optimized out> #1 0x00007f5729a7507e in array_delete_i (count=1, idx=125, array=0x7f572c12bbb8) at ../../../../src/lib/array.h:200 No locals. #2 imapc_u...
2014 Apr 23
1
Segfault in dovecot-lda when resolver is unavailable
...in _int_free (av=0x2b612e215c0 <main_arena>, p=0x1b23bfabe0, have_lock=0) at malloc.c:3903 3903 unlink(p, bck, fwd); (gdb) bt #0 0x000002b612afaf72 in _int_free (av=0x2b612e215c0 <main_arena>, p=0x1b23bfabe0, have_lock=0) at malloc.c:3903 #1 0x000002b612e96a4e in buffer_free (_buf=_buf at entry=0x1b23bfa948) at buffer.c:144 #2 0x000002b612ebeca8 in array_free_i (array=0x1b23bfa948) at array.h:108 #3 priorityq_deinit (_pq=_pq at entry=0x1b23bfabb0) at priorityq.c:38 #4 0x000002b612eafa57 in io_loop_destroy (_ioloop=_ioloop at entry=0x395a4da91d0) at ioloop.c:495 #5 0x0000...
2014 Aug 04
1
dovecot-lda 2.2.13 crashing when sieve_before used
...mail delivery, which I was able to track down to a crash of dovecot-lda. Whenever I do something like ... /usr/lib/dovecot/dovecot-lda -d christoph.lechleitner at iteg.at <test.msg ... (with test.msg containing a raw e-mail message), dovecot-lda crashes. The gdb backtrace is: #0 buffer_free (_buf=_buf at entry=0x242eb20) at buffer.c:145 #1 0x00007f30d47ea4fd in array_free_i (array=0x242eb20) at /build/dovecot-8Ko2hw/dovecot-2.2.13/src/lib/array.h:108 #2 sieve_file_script_sequence_destroy (seq=0x242eb10) at sieve-file-script-sequence.c:242 #3 0x00007f30d47c963e in sieve_script_sequence_fr...
2010 May 19
6
[PATCH 0/6]xl: Add ''xl tmem-*'' commands
Add tmem-* commands, did some simple tests. [PATCH 1/6]xl: Add ''xl tmem-list'' command [PATCH 2/6]xl: Add ''xl tmem-freeze'' command [PATCH 3/6]xl: Add ''xl tmem-destroy'' command [PATCH 4/6]xl: Add ''xl tmem-thaw'' command [PATCH 5/6]xl: Add ''xl tmem-set'' command [PATCH 6/6]xl: Add ''xl
2005 Sep 09
1
1.0alpha1: stack frame core
...pool_data_stack_realloc(): stack frame changed") at failures.c:173 #4 0x00070304 in pool_data_stack_realloc (pool=Variable "pool" is not available. ) at mempool-datastack.c:112 #5 0x00067d60 in buffer_alloc (buf=0x98500, size=1024) at buffer.c:32 #6 0x00067fb0 in buffer_write (_buf=Variable "_buf" is not available. ) at buffer.c:57 #7 0x00067ff4 in buffer_append (buf=0x98500, data=0x98674, data_size=539) at buffer.c:155 #8 0x0007551c in str_append_n (str=0x98500, cstr=0x98674, max_len=539) at str.c:77 #9 0x0005ffa4 in imap_quote_append (str=0x98500, v...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...failed */ } - usleep(UPSDELAY); + nanosleep(&delay, NULL); } /* pad to 8 chars with CRs */ @@ -1251,7 +1256,7 @@ static int setvar_string(apc_vartab_t *v return STAT_SET_HANDLED; /* FUTURE: failed */ } - usleep(UPSDELAY); + nanosleep(&delay, NULL); } ret = read_buf(temp, sizeof(temp)); @@ -1314,7 +1319,8 @@ static int do_cmd(apc_cmdtab_t *ct) /* some commands have to be sent twice with a 1.5s gap */ if (ct->flags & APC_REPEAT) { - usleep(CMDLONGDELAY); + struct timespec delay = {CMDLONGDELS, CMDLONGDELNS}; + nanosleep(&delay, NULL); r...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...d. Some comments below, some of them checkpatch.pl would find. I do not know much about framebuffer, so comments are from virtio usage perspective. Generally, I think locking is missing here. As far as I know, virtio APIs do no locking internally. So when you e.g. schedule_work and then call add_buf, this can run on many CPUs in parallel, which will cause memory corruption. > --- > drivers/video/Kconfig | 15 + > drivers/video/Makefile | 1 + > drivers/video/virtio-fb.c | 799 ++++++++++++++++++++++++++++++++++++++++++++ > include/linux/virtio_ids.h | 1 + &g...
2009 Nov 05
0
[PATCH] Add VirtIO Frame Buffer Support
...d. Some comments below, some of them checkpatch.pl would find. I do not know much about framebuffer, so comments are from virtio usage perspective. Generally, I think locking is missing here. As far as I know, virtio APIs do no locking internally. So when you e.g. schedule_work and then call add_buf, this can run on many CPUs in parallel, which will cause memory corruption. > --- > drivers/video/Kconfig | 15 + > drivers/video/Makefile | 1 + > drivers/video/virtio-fb.c | 799 ++++++++++++++++++++++++++++++++++++++++++++ > include/linux/virtio_ids.h | 1 + &g...
2007 Apr 13
2
R on Solaris 10 x64
...ing R under dbx (without RTC) until the crash shows this: ... About to write t at 1 (l at 1) signal SEGV (no mapping at the fault address) in _memcpy at 0xfe90444b 0xfe90444b: _memcpy+0x006b: movaps 0x00000000(%esi),%xmm0 Current function is H5D_select_mgath 379 HDmemcpy(tgath_buf,buf+off[curr_seq],curr_len); (dbx) where current thread: t at 1 [1] _memcpy(0x0, 0xfdebc707, 0x9f5c4f0), at 0xfe90444b =>[2] H5D_select_mgath(_buf = 0x9f79580, space = 0x8966770, iter = 0x8045980, nelmts = 3120U, dxpl_cache = 0xfe170078, _tgath_buf = 0x9f5c4f0), line 379 in "H5Dselect.c&q...
2008 Dec 21
0
[PATCH] Fix ectest to not check a case which isn't guaranteed to work, and which we don't use.
...) diff --git a/libcelt/entdec.c b/libcelt/entdec.c index 555543f..284ce39 100644 --- a/libcelt/entdec.c +++ b/libcelt/entdec.c @@ -5,6 +5,7 @@ #include <stddef.h> #include "entdec.h" #include "os_support.h" +#include "arch.h" void ec_byte_readinit(ec_byte_buffer *_b,unsigned char *_buf,long _bytes){ @@ -106,6 +107,8 @@ ec_uint32 ec_dec_uint(ec_dec *_this,ec_uint32 _ft){ unsigned s; int ftb; t=0; + /*In order to optimize EC_ILOG(), it is undefined for the value 0.*/ + celt_assert(_ft>1); _ft--; ftb=EC_ILOG(_ft); if(ftb>EC...
2016 Apr 29
4
Recent update causes segfault in proxy mode
I'm using the auto builds (2:2.2.24-1~auto+3) for Ubuntu/Debian. The recent upgrade to 2.2.24 cause the follwoing error to appear: I can log in to a mailbox via dovecot I can delete emails Upon expunge, dovecot crashes: Apr 29 11:05:30 mproxy dovecot: imap(hildeb): expunge: box=INBOX, uid=142514, msgid=, size=10086 Apr 29 11:05:30 mproxy dovecot: imap(hildeb): expunge: box=INBOX,
2003 Oct 08
4
OS/390 openssh
...char *account; + } _checkuser_struct; + extern int _checkuser(_checkuser_struct *); + _checkuser_struct auth_user; + char logon[9]; + char passw[9]; + char passw_expdate[11]; + char logon_expdate[11]; + char account_buffer[9]; + int ok_pw; + + /* in: */ + strncpy(logon, pw->pw_name, sizeof logon); + strupper(logon, NULL); + str_pad(logon, sizeof logon, ' '); + auth_user.username = logon; + strncpy(passw, password, sizeof passw); + strupper(passw, NULL); + str_pad(passw, sizeof passw...
2017 Mar 22
0
replicator crashing - oom
...=<optimized out>, mem=<optimized out>, pool=<optimized out>) at mempool.h:88 #10 buffer_alloc (buf=buf at entry=0xf849a8, size=536870912) at buffer.c:36 #11 0x00007fddaf9bcfb4 in buffer_check_limits (data_size=32, pos=268435424, buf=0xf849a8) at buffer.c:75 #12 buffer_write (_buf=0xf849a8, pos=268435424, data=0xfa0420, data_size=32) at buffer.c:187 #13 0x000000000040519b in array_append_i (count=1, data=0xfa0420, array=<synthetic pointer>) at ../../../src/lib/array.h:168 #14 replicator_queue_handle_sync_lookups (user=0xfa3fc0, queue=0xf92260) at replicator-queue.c:...
2010 Feb 27
2
Possible CPU Denial-Of-Service attack to dovecot IMAP.
...4083 pread64(6, "arset=windows-1251\nContent-trans"..., 4068, 822966) = 4068 pread64(6, "ail-Priority: Normal\nX-Mailer: M"..., 4091, 827034) = 4091 --- 4. and gdb in that time: --- (gdb) where #0 0xb7604060 in memset () from /lib/tls/libc.so.6 #1 0x080d7483 in buffer_write (_buf=0x8131db0, pos=135470571, data=0x8132d52, data_size=2) at buffer.c:54 #2 0x080d74fb in buffer_append (buf=0x0, data=0x8132d52, data_size=2) at buffer.c:168 #3 0x080cebfe in read_header (mstream=0x8131be8) at istream-header-filter.c:214 #4 0x080cef07 in i_stream_header_filter_read (stream=0x8131b...
2017 Mar 24
3
replicator crashing - oom
...=<optimized out>, mem=<optimized out>, pool=<optimized out>) at mempool.h:88 #10 buffer_alloc (buf=buf at entry=0xf849a8, size=536870912) at buffer.c:36 #11 0x00007fddaf9bcfb4 in buffer_check_limits (data_size=32, pos=268435424, buf=0xf849a8) at buffer.c:75 #12 buffer_write (_buf=0xf849a8, pos=268435424, data=0xfa0420, data_size=32) at buffer.c:187 #13 0x000000000040519b in array_append_i (count=1, data=0xfa0420, array=<synthetic pointer>) at ../../../src/lib/array.h:168 #14 replicator_queue_handle_sync_lookups (user=0xfa3fc0, queue=0xf92260) at replicator-queue.c:...