Displaying 20 results from an estimated 37 matches for "buffer_t".
2016 Feb 29
3
RFC: Add bitcode tests to test-suite
...ramework, easier debugging when things-go-wrong, etc.).
> Also, just looking quickly at one IR I'm surprised by things like:
>
> "assert succeeded165": ; preds = %"assert succeeded146"
> %buf_host181 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
> %23 = bitcast i8** %buf_host181 to double**
> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
> br i1 %24, label %"...
2016 Feb 29
3
RFC: Add bitcode tests to test-suite
...error checking and eliminate it for instance, making any error undetected.
Also, just looking quickly at one IR I'm surprised by things like:
"assert succeeded165": ; preds = %"assert succeeded146"
%buf_host181 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
%23 = bitcast i8** %buf_host181 to double**
%error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
%24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
br i1 %24, label %"assert failed183&quo...
2016 Feb 29
0
RFC: Add bitcode tests to test-suite
...ay once an error is found.
Sound about right?
>
> Also, just looking quickly at one IR I'm surprised by things like:
>
> "assert succeeded165": ; preds = %"assert
> succeeded146"
> %buf_host181 = getelementptr inbounds %struct.buffer_t,
> %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
> %23 = bitcast i8** %buf_host181 to double**
> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
> br i1 %24, label %&...
2016 Feb 29
0
RFC: Add bitcode tests to test-suite
...ng for each particular test.
>
> Also, just looking quickly at one IR I'm surprised by things like:
>>
>> "assert succeeded165": ; preds = %"assert
>> succeeded146"
>> %buf_host181 = getelementptr inbounds %struct.buffer_t,
>> %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
>> %23 = bitcast i8** %buf_host181 to double**
>> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align
>> 8
>> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
&...
2010 Jul 20
1
imap core dumping on signal 10
...ot/dovecot-1.2.12/src/lib-storage/index//index-storage.c:475
storage = (struct mail_storage *) 0x11
box = (struct mailbox *) 0x0
dir_gid = -1
origin = 0x15b140 "/var/mail/chrisho"
dir_origin = 0x15b140 "/var/mail/chrisho"
buffer = (buffer_t *) 0x0
buffer = (buffer_t *) 0x1615c8
#5 0x00064ad8 in mbox_alloc_mailbox (storage=0x3164c, index=0x1606d0, name=0x11f8e8 "INBOX", path=0x15b140 "/var/mail/chrisho", flags=0)
at /usr/local/src/dovecot/dovecot-1.2.12/src/lib-storage/index/mbox//mbox-storage.c:608...
2017 Apr 26
2
[BUG] OpenSSL function has been deprecated
...I don't even know if the patch I wrote actually works (I don't program in C, but gave it a shot anyway) but below is the patch.
--- a/src/lib-ssl-iostream/iostream-openssl-params.c
+++ b/src/lib-ssl-iostream/iostream-openssl-params.c
@@ -13,13 +13,21 @@ generate_dh_parameters(int bitsize, buffer_t *output, const char **error_r)
{
DH *dh;
unsigned char *p;
- int len, len2;
+ int len, len2, success;
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+ success = DH_generate_parameters_ex(dh, bitsize, DH_GENERATOR, NULL);
+#else
dh = DH_generate_parameters(bitsize, DH_GENERATOR, NULL,...
2016 Mar 01
2
RFC: Add bitcode tests to test-suite
...gt;>
>>>> Also, just looking quickly at one IR I'm surprised by things like:
>>>>
>>>> "assert succeeded165": ; preds = %"assert succeeded146"
>>>> %buf_host181 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
>>>> %23 = bitcast i8** %buf_host181 to double**
>>>> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
>>>> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer,...
2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...r->offset);
+ string_t *str;
+
+ if (unicode)
+ len /= sizeof(ucs2le_t);
+
+ str = t_str_new(len);
while (len-- > 0) {
str_append_c(str, *p & 0x7f);
- p += sizeof(ucs2le_t);
+ p += unicode ? sizeof(ucs2le_t) : 1;
}
return str_c(str);
}
-static unsigned int append_string(buffer_t *buf, const char *str, int ucase)
+static unsigned int append_string(buffer_t *buf, const char *str,
+ int ucase, int unicode)
{
unsigned int length = 0;
for ( ; *str; str++) {
buffer_append_c(buf, ucase ? toupper(*str) : *str);
- buffer_append_c(buf, 0);
- length += sizeof(ucs2le...
2016 Mar 01
0
RFC: Add bitcode tests to test-suite
...t; > > like:
> > > >
> > >
> >
>
> > > > > "assert succeeded165": ; preds = %"assert succeeded146"
> > > >
> > >
> >
>
> > > > > %buf_host181 = getelementptr inbounds %struct.buffer_t,
> > > > > %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
> > > >
> > >
> >
>
> > > > > %23 = bitcast i8** %buf_host181 to double**
> > > >
> > >
> >
>
> > > > > %error_op_...
2016 Mar 01
4
RFC: Add bitcode tests to test-suite
...>
> --
> Mehdi
>
>
>
>
>
> Also, just looking quickly at one IR I'm surprised by things like:
>
> "assert succeeded165": ; preds = %"assert succeeded146"
> %buf_host181 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
> %23 = bitcast i8** %buf_host181 to double**
> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
> br i1 %24, label %"...
2016 Mar 01
0
RFC: Add bitcode tests to test-suite
...t;
>
>>
>> Also, just looking quickly at one IR I'm surprised by things like:
>>>
>>> "assert succeeded165": ; preds = %"assert
>>> succeeded146"
>>> %buf_host181 = getelementptr inbounds %struct.buffer_t,
>>> %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
>>> %23 = bitcast i8** %buf_host181 to double**
>>> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23,
>>> align 8
>>> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeq...
2016 Mar 01
2
RFC: Add bitcode tests to test-suite
...>>
>>
>>
>>
>> Also, just looking quickly at one IR I'm surprised by things like:
>>
>> "assert succeeded165": ; preds = %"assert succeeded146"
>> %buf_host181 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %error_op_pcmpeqq_272.buffer, i64 0, i32 1
>> %23 = bitcast i8** %buf_host181 to double**
>> %error_op_pcmpeqq_272.host226227232 = load double*, double** %23, align 8
>> %24 = icmp eq %struct.buffer_t* %error_op_pcmpeqq_272.buffer, null
>> br i1 %2...
2004 Nov 10
0
[PATCH] NTLM update and crashfix
...0
+++ dovecot-1.0-test52/src/auth/mech-ntlm.c 2004-11-10 16:45:53.000000000 +0300
@@ -42,10 +42,15 @@ lm_credentials_callback(const char *cred
const unsigned char *client_response;
unsigned char lm_response[LM_RESPONSE_SIZE];
unsigned char hash[LM_HASH_SIZE];
+ unsigned int response_length;
buffer_t *hash_buffer;
int ret;
- if (credentials == NULL) {
+ response_length =
+ ntlmssp_buffer_length(request->response, lm_response);
+ client_response = ntlmssp_buffer_data(request->response, lm_response);
+
+ if ((credentials == NULL) || (response_length < LM_RESPONSE_SIZE)) {
mech_au...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...pool, &p, end, &auth->user_response);
+ if (len != RPA_UCHALLENGE_LEN) {
+ *error = "invalid user response";
+ return FALSE;
+ }
+
+ if (p != end) {
+ *error = "unneeded data found";
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+static void
+buffer_append_asn1_length(buffer_t *buf, unsigned int length)
+{
+ if (length < 0x80) {
+ buffer_append_c(buf, length);
+ } else if (length < 0x100) {
+ buffer_append_c(buf, 0x81);
+ buffer_append_c(buf, length);
+ } else {
+ buffer_append_c(buf, 0x82);
+ buffer_append_c(buf, length >> 8);
+ buffer_append_c(buf, le...
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
2016 Feb 29
0
RFC: Add bitcode tests to test-suite
> On Feb 29, 2016, at 11:16 AM, Alina Sbirlea via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> All,
>
> To get the discussion going in a focused manner, here is an initial patch with a running test. The test is from the Halide suite and is checking the correctness of several simd operations.
> (Notes: the patch is large due to the number of operations being tested;
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
..._first_message;
- unsigned char salt[16];
- unsigned char salted_password[SHA1_RESULTLEN];
+ const char *snonce;
/* received: */
const char *gs2_cbind_flag;
const char *cnonce;
- const char *snonce;
const char *client_first_message_bare;
const char *client_final_message_without_proof;
buffer_t *proof;
+
+ /* stored */
+ buffer_t *stored_key;
+ buffer_t *server_key;
};
-static void Hi(const unsigned char *str, size_t str_size,
- const unsigned char *salt, size_t salt_size, unsigned int i,
- unsigned char result[SHA1_RESULTLEN])
-{
- struct hmac_context ctx;
- unsigned cha...
2006 Jun 26
2
[PATCH, RFC 3/13] OTP: parity table
Add OTP parity table.
diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/lib-otp/otp-parity.c dovecot/src/lib-otp/otp-parity.c
--- dovecot.vanilla/src/lib-otp/otp-parity.c 1970-01-01 03:00:00.000000000 +0300
+++ dovecot/src/lib-otp/otp-parity.c 2006-06-23 13:44:31.161891112 +0400
@@ -0,0 +1,29 @@
+/*
+ * OTP parity table.
+ *
+ * Copyright (c) 2006 Andrey Panin <pazke at
2016 Feb 29
4
RFC: Add bitcode tests to test-suite
All,
To get the discussion going in a focused manner, here is an initial patch
with a running test. The test is from the Halide suite and is checking the
correctness of several simd operations.
(Notes: the patch is large due to the number of operations being tested;
I expect a lot of changes before actually landing it, this is simply to
continue the discussion using a concrete example.)
2004 Oct 21
2
test51 dumping core
...request = (struct auth_request *) 0xffffffff
list = (char **) 0x3c006414
name = 0x0
arg = 0x0
initial_resp = 0xcfbefe38 "X???8?\036\n\001"
initial_resp_data = (void *) 0xcfbefecc
initial_resp_len = 0
id = 1006715072
buf = (buffer_t *) 0x3c014080
valid_client_cert = 0
#1 0x1c00570f in auth_client_input_auth (conn=0x0, args=0x8b824024 "")
at auth-client-connection.c:196
mech = (struct mech_module *) 0x5
request = (struct auth_request *) 0x1
list = (char **) 0xa1efc38
name =...