search for: key_length

Displaying 3 results from an estimated 3 matches for "key_length".

2017 Oct 19
0
[Bug 1193] New: Incorrect malloc for SQL statements and missing strings length check
...int sql_createstmt(struct ulogd_pluginstance *upi) @@ -78,13 +79,35 @@ for (i = 0; i < upi->input.num_keys; i++) { if (upi->input.keys[i].flags & ULOGD_KEYF_INACTIVE) continue; + + struct ulogd_key *key = upi->input.keys[i].u.source; + short key_length = 4; + /* we need space for the key and a comma, as well as - * enough space for the values */ - size += strlen(upi->input.keys[i].name) + 1 + SQL_VALSIZE; + * enough space for the values (and quotes around strings) */ + if(key->type == ULOGD_RET_STRING)...
2007 Jun 25
1
Document::set_data() Limitations?
Hi there, I'm wondering if there is any limitations (hard or soft) to what you can shove into Document's set_data? Can I put in binary data? Or is it really just meant for text? Is there a practical limit to how much information we can put in there? I suspect that I'll be putting in quite a lot, as in a couple to maybe a hundred MB. Is this silly? I'm still in the
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...orig/tpm_emulator-0.4/tpm/tpm_credentials.c 2006-06-23 19:37:07.000000000 +0900 -+++ tpm_emulator/tpm/tpm_credentials.c 2007-09-12 20:23:30.000000000 +0900 -@@ -47,20 +47,20 @@ int tpm_compute_pubkey_checksum(TPM_NONC - - TPM_RESULT tpm_get_pubek(TPM_PUBKEY *pubEndorsementKey) - { -- UINT32 key_length; -+ size_t key_length; - if (!tpmData.permanent.data.endorsementKey.size) return TPM_NO_ENDORSEMENT; - /* setup TPM_PUBKEY structure */ -- key_length = tpmData.permanent.data.endorsementKey.size; -- pubEndorsementKey->pubKey.keyLength = key_length >> 3; -+ pubEndorsementKey->pub...