search for: outbuf

Displaying 20 results from an estimated 287 matches for "outbuf".

Did you mean: out_buf
2007 Nov 16
1
3.0.27a out monday.
Just spoke to Jerry, we'll be doing a 3.0.27a on Monday to fix a regression that broke smbfs mounts from Linux. Sorry for the problem. Jeremy.
1998 Mar 12
0
Code to check Password Server Group Memberships
...0x68, 0, 0x42, 0x32, 0x31, 0 }; /**************************************************************************** attempted support for server level security ****************************************************************************/ BOOL server_validate(char *buf, char *user) { pstring inbuf,outbuf; BOOL ret; if (password_client < 0) { DEBUG(1,("%s not connected\n",pserver)); return(False); } bzero(inbuf,sizeof(inbuf)); memcpy(outbuf,buf,sizeof(outbuf)); /* send a session setup command */ CVAL(outbuf,smb_flg) = 0x8; SSVAL(outbuf,smb_flg2,0x1); CVA...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...uint8_t *buf, int lun) +static int scsi_check_cdb_len(uint8_t *cdb, uint32_t *datalen, uint64_t *lba) { - SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d); - uint64_t nb_sectors; - uint64_t lba; - uint32_t len; - int cmdlen; - int is_write; - uint8_t command; - uint8_t *outbuf; - SCSIRequest *r; + int cmdlen = 0; - command = buf[0]; - r = scsi_find_request(s, tag); - if (r) { - BADF("Tag 0x%x already in use\n", tag); - scsi_cancel_io(d, tag); - } - /* ??? Tags are not unique for different luns. We only implement a - s...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...uint8_t *buf, int lun) +static int scsi_check_cdb_len(uint8_t *cdb, uint32_t *datalen, uint64_t *lba) { - SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d); - uint64_t nb_sectors; - uint64_t lba; - uint32_t len; - int cmdlen; - int is_write; - uint8_t command; - uint8_t *outbuf; - SCSIRequest *r; + int cmdlen = 0; - command = buf[0]; - r = scsi_find_request(s, tag); - if (r) { - BADF("Tag 0x%x already in use\n", tag); - scsi_cancel_io(d, tag); - } - /* ??? Tags are not unique for different luns. We only implement a - s...
2007 Nov 12
3
DO NOT REPLY [Bug 5075] New: Syncing with --iconv may yield protocol error
...nvert && ic_send == (iconv_t)-1) #endif convert = 0; #ifdef ICONV_OPTION /* We need to convert buf before doing anything else so that we * can include the (converted) byte length in the message header. */ if (convert) { xbuf outbuf, inbuf; INIT_XBUF(outbuf, buffer + 4, 0, sizeof(buffer) - 4); INIT_XBUF(inbuf, (char*)buf, len, -1); iconvbufs(ic_send, &inbuf, &outbuf, ICB_INCLUDE_BAD | ICB_INCLUDE_INCOMPLETE); if (inbuf....
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
To make it complete, here is the code that I am using to encode a large file: int __stdcall SpxEncode(unsigned char* inBuf, unsigned char* outBuf, unsigned int inlen) { //char *testFile; //FILE *ftest; //testFile = "test"; //ftest = fopen(testFile, "wb"); //fwrite(inBuf,1,inlen,ftest); //take every 320 bytes //copy every short to float array, and make sure to put null in unused area...
2002 Dec 20
1
smbclient and large file support
...urce/libsmb/clireadwrite.c Tue Apr 30 06:27:03 2002 +++ samba-2.2.7a-fixed/source/libsmb/clireadwrite.c Thu Dec 19 15:48:47 2002 @@ -30,10 +30,15 @@ static BOOL cli_issue_read(struct cli_state *cli, int fnum, off_t offset, size_t size, int i) { + BOOL bigoffset = False; + memset(cli->outbuf,'\0',smb_size); memset(cli->inbuf,'\0',smb_size); - set_message(cli->outbuf,10,0,True); + if ((SMB_BIG_UINT)offset >> 32) + bigoffset = True; + + set_message(cli->outbuf,bigoffset ? 12 : 10,0,True); SCVAL(cli->outbuf,smb_com,SMBreadX); SSVAL(cli->o...
2006 Sep 18
0
Segfault in Samba
...n user_in_list (user=0xbfffe8e0 "DELSOLW2K\\Dale", list=0x83ef350) at smbd/password.c:520 #14 0x08094002 in map_username (user=0xbfffe8e0 "DELSOLW2K\\Dale") at smbd/map_username.c:162 #15 0x080bece7 in reply_spnego_kerberos (conn=0x0, inbuf=0x407ab008 "", outbuf=0x407cc008 "", length=1458, bufsize=131072, secblob=0xbfffeb60) at smbd/sesssetup.c:292 #16 0x080bfc05 in reply_spnego_negotiate (conn=0x0, inbuf=0x407ab008 "", outbuf=0x407cc008 "", vuid=100, length=1458, bufsize=131072, blob1= {data = 0x8425030 "`...
2015 Jul 02
8
[Bug 11378] New: Please add a '--line-buffered' option to rsync to make logging/output more friendly with pipes/syslog/CI systems/etc.
https://bugzilla.samba.org/show_bug.cgi?id=11378 Bug ID: 11378 Summary: Please add a '--line-buffered' option to rsync to make logging/output more friendly with pipes/syslog/CI systems/etc. Product: rsync Version: 3.1.1 Hardware: All OS: All Status: NEW
2013 Apr 16
7
[Bug 9798] New: rsync crash with SIGSEGV when read time out happens
...step_data=0x80a3d24, inptrp=0xbfffb05c, inend=0xbfffbd48 "\n", outptrp=0xbfffaf84, outend=0x80a5018 "", irreversible=0xbfffaf88) at loop.c:282 #1 0xb7f9cbb2 in __gconv_transform_ascii_internal (step=0x80a2ee8, data=0x80a2fe8, inptrp=0xbfffb05c, inend=0xbfffbd48 "\n", outbufstart=0x0, irreversible=0xbfffb018, do_flush=0, consume_incomplete=0) at skeleton.c:483 #2 0xb7f99ec7 in __gconv (cd=0x80a2fe0, inbuf=0xbfffb05c, inbufend=0xbfffbd48 "\n", outbuf=0xbfffb064, outbufend=0x80a3d24 "", irreversible=0xbfffb018) at gconv.c:63 #3 0xb7f996fc in ic...
1998 Jul 22
0
smbd's running wild in Solaris x86 malloc...
...hat might be useful to someone: 1) Yes, that's right, malloc gets stuck. The actual trace is: #0 0x8005ea3f in t_splay () #1 0x8005e956 in t_delete () #2 0x8005e705 in realfree () #3 0x8005e2e2 in _malloc_unlocked () #4 0x8005e1b9 in malloc () #5 0x807773d in api_reply (cnum=12, vuid=0, outbuf=0x8122271 "", data=0x0, params=0x80fea08 "h", tdscnt=0, tpscnt=26, mdrcnt=24900, mprcnt=8) at ipc.c:3295 #6 0x80778b9 in named_pipe (cnum=12, vuid=0, outbuf=0x8122271 "", name=0x8047852 "LANMAN", setup=0x0, data=0x0, params=0x80fea08 "h&qu...
2015 Jun 17
8
[Bug 11338] New: Rsync Crash - Segmentation fault
https://bugzilla.samba.org/show_bug.cgi?id=11338 Bug ID: 11338 Summary: Rsync Crash - Segmentation fault Product: rsync Version: 3.1.1 Hardware: x64 OS: Linux Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter:
1999 Dec 28
2
Directory rename problem with smbclient
I am trying to use smbclient to migrate data from OS/2 LanServers to a filesystem on an AIX 4.3.1 machine. Everything works great except renaming directories on the OS/2 LanServer. I get the error ERRDOS - ERRbadfile (File not found.) renaming files when I do a "rename <existing_dir_name> <new_dir_name>" at the prompt, but <existing_dir_name> exists. I connected to a
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...================= > --- src/main/connections.c (revision 70213) > +++ src/main/connections.c (working copy) > @@ -369,7 +369,7 @@ > /* is this safe? */ > warning(_("invalid char string in output conversion")); > *ob = '\0'; > - con->write(outbuf, 1, strlen(outbuf), con); > + con->write(outbuf, 1, ob - outbuf, con); > } while(again && inb > 0); /* it seems some iconv signal -1 on > zero-length input */ > } else > > >> >> But just looking a bit at such a file() object wit...
2004 Nov 30
1
Kerberos authentication sigsegvs
...6 0x0823ca25 in ads_verify_ticket (realm=0x835acc0 "LOCALDOMAIN", ticket=0xbfffeba0, principal=0xbfffdce4, auth_data=0xbfffea90, ap_rep=0xbfffea80, session_key=0xbfffea50) at libads/kerberos_verify.c:335 #57 0x080abfe6 in reply_spnego_kerberos (conn=0x0, inbuf=0xb7aa6008 "", outbuf=0xb7a85008 "", length=604, bufsize=131072, secblob=0xbfffec20) at smbd/sesssetup.c:168 #58 0x080accbf in reply_spnego_negotiate (conn=0x0, inbuf=0xb7aa6008 "", outbuf=0xb7a85008 "", length=604, bufsize=131072, blob1= {data = 0x8385d98 "`\202\002\003\006\006+...
2017 Dec 01
3
[PATCH v18 10/10] virtio-balloon: don't report free pages when page poisoning is enabled
...drivers/virtio/virtio_balloon.c > index 035bd3a..6ac4cff 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -652,7 +652,9 @@ static void report_free_page(struct work_struct *work) > /* Start by sending the obtained cmd id to the host with an outbuf */ > send_one_desc(vb, vb->free_page_vq, virt_to_phys(&vb->start_cmd_id), > sizeof(uint32_t), false, true, false); > - walk_free_mem_block(vb, 0, &virtio_balloon_send_free_pages); > + if (!(page_poisoning_enabled() && > + !IS_ENABLED(CONFIG_PAGE_P...
2017 Dec 01
3
[PATCH v18 10/10] virtio-balloon: don't report free pages when page poisoning is enabled
...drivers/virtio/virtio_balloon.c > index 035bd3a..6ac4cff 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -652,7 +652,9 @@ static void report_free_page(struct work_struct *work) > /* Start by sending the obtained cmd id to the host with an outbuf */ > send_one_desc(vb, vb->free_page_vq, virt_to_phys(&vb->start_cmd_id), > sizeof(uint32_t), false, true, false); > - walk_free_mem_block(vb, 0, &virtio_balloon_send_free_pages); > + if (!(page_poisoning_enabled() && > + !IS_ENABLED(CONFIG_PAGE_P...
2016 Feb 23
4
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
>>>>> nospam at altfeld-im de <nospam at altfeld-im.de> >>>>> on Mon, 22 Feb 2016 18:45:59 +0100 writes: > Dear R developers > I think I have found a bug that can be reproduced with two lines of code > and I am very thankful to get your first assessment or feed-back on my > report. > If this is the wrong mailing list or I
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds some internal APIs for running commands. The first patch contains the new APIs. The subsequent patches change various parts of the library over to use it. Rich.
2016 Feb 25
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
...==================== > --- src/main/connections.c (revision 70213) > +++ src/main/connections.c (working copy) > @@ -369,7 +369,7 @@ > /* is this safe? */ > warning(_("invalid char string in output conversion")); > *ob = '\0'; > - con->write(outbuf, 1, strlen(outbuf), con); > + con->write(outbuf, 1, ob - outbuf, con); > } while(again && inb > 0); /* it seems some iconv signal -1 on > zero-length input */ > } else > > >> >> But just looking a bit at such a file() object with...