search for: value_str

Displaying 20 results from an estimated 20 matches for "value_str".

2012 Feb 01
1
[PATCH] hivexml
...tch, and I would like to get your feedback on mine. If > you'd like me to post to the libguestfs mailing list, I could do so... > let me know if there are patch standards that I should use. > > The approach I took was toI use XMLisCharQ() to check each UTF-8 > string value in value_string and value_mulitple_string. > > > > The issue I encountered was that the following UTF-8 string was > occurring in a clean Win7 install -- > > e689a4 02 eb8288c 7937 46 5 > > The 02 (^B) is an invalid XML character in the 1.0 spec, and was > causing xmllint to f...
2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
...parsing succeeds, - * @name and @value will contain the parsed values and %TRUE will be returned. - * - * Returns: %TRUE if parsing the property succeeded, %FALSE otherwise - */ -gboolean -swfdec_urldecode_one (const char *string, char **name, char **value, const char **end) -{ - char *name_str, *value_str; - - g_return_val_if_fail (string != NULL, FALSE); - - name_str = swfdec_urldecode_one_string (string, &string); - if (name_str == NULL) - goto fail; - if (*string != '=') { - g_free (name_str); - goto fail; - } - string++; - value_str = swfdec_urldecode_one_string (stri...
2007 Nov 12
0
2 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/various
...parsing succeeds, - * @name and @value will contain the parsed values and %TRUE will be returned. - * - * Returns: %TRUE if parsing the property succeeded, %FALSE otherwise - */ -gboolean -swfdec_urldecode_one (const char *string, char **name, char **value, const char **end) -{ - char *name_str, *value_str; - - g_return_val_if_fail (string != NULL, FALSE); - - name_str = swfdec_urldecode_one_string (string, &string); - if (name_str == NULL) - goto fail; - if (*string != '=') { - g_free (name_str); - goto fail; - } - string++; - value_str = swfdec_urldecode_one_string (stri...
2011 Sep 17
3
[PATCH 1/1] hivexml: Base64-encode non-printable data
...tf (stderr, "Warning: start_value: safe_print_string_attribute failed, but we're continuing.\n"); + } else /* default key */ XML_CHECK (xmlTextWriterWriteAttribute, (writer, BAD_CAST "default", BAD_CAST "1")); } @@ -264,6 +317,7 @@ value_string (hive_h *h, void *writer_v, hive_node_h node, hive_value_h value, { xmlTextWriterPtr writer = (xmlTextWriterPtr) writer_v; const char *type; + int ret = 0; switch (t) { case hive_t_string: type = "string"; break; @@ -286,11 +340,9 @@ value_string (hive_h *h, void *write...
2011 Feb 26
3
hivex: some issues (key encoding, ...) and suggested fixes
...0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Workaround: I use value_value if value_string fails 2. Non-ascii node names I found a node with a \xDC (?) in it: SOFTWARE\\ODBC\\ODBCINST.INI\\MS Code Page-\xDCbersetzer hivex.c has a comment like this: /* AFAIK the node name is always plain ASCII, so no conversion * to UTF-8 is necessary. However we do need to nul-terminate *...
2011 Aug 10
1
[PATCH] Report last-modified time of hive root and nodes
...e. */ struct hivex_visitor { - int (*node_start) (hive_h *, void *opaque, hive_node_h, const char *name); + int (*node_start) (hive_h *, void *opaque, hive_node_h, const char *name, const char *last_modified); int (*node_end) (hive_h *, void *opaque, hive_node_h, const char *name); int (*value_string) (hive_h *, void *opaque, hive_node_h, hive_value_h, hive_type t, size_t len, const char *key, const char *str); int (*value_multiple_strings) (hive_h *, void *opaque, hive_node_h, hive_value_h, hive_type t, size_t len, const char *key, char **argv); @@ -1110,7 +1150,7 @@ terminates immediate...
2012 Mar 31
2
[PATCH v6] hivexml: Add byte run reporting functions
...alue (xmlTextWriterPtr writer) } static int +value_byte_runs (hive_h *h, void *writer_v, hive_value_h value) { + xmlTextWriterPtr writer = (xmlTextWriterPtr) writer_v; + char buf[1+BYTE_RUN_BUF_LEN]; + size_t value_data_cell_length; + errno = 0; + size_t value_data_structure_length = hivex_value_struct_length (h, value); + if (errno != 0) { + if (errno == EINVAL) { + fprintf (stderr, "value_byte_runs: Invoked on what does not seem to be a value (%zu).\n", value); + } + return -1; + } + hive_value_h value_data_cell_offset = hivex_value_data_cell_offset (h, value, &amp...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...parsing succeeds, + * @name and @value will contain the parsed values and %TRUE will be returned. + * + * Returns: %TRUE if parsing the property succeeded, %FALSE otherwise + */ +gboolean +swfdec_urldecode_one (const char *string, char **name, char **value, const char **end) +{ + char *name_str, *value_str; + + g_return_val_if_fail (string != NULL, FALSE); + + name_str = swfdec_urldecode_one_string (string, &string); + if (name_str == NULL) + goto fail; + if (*string != '=') { + g_free (name_str); + goto fail; + } + string++; + value_str = swfdec_urldecode_one_string (stri...
2011 Dec 08
1
[hivex] [PATCH 8/8] hivexml: Add byte run reporting functions
...alue (xmlTextWriterPtr writer) } static int +value_byte_runs (hive_h *h, void *writer_v, hive_value_h value) { + xmlTextWriterPtr writer = (xmlTextWriterPtr) writer_v; + char buf[1+BYTE_RUN_BUF_LEN]; + size_t value_data_cell_length; + errno = 0; + size_t value_data_structure_length = hivex_value_struct_length (h, value); + if (errno != 0) { + if (errno == EINVAL) { + fprintf (stderr, "value_byte_runs: Invoked on what does not seem to be a value (%zu).\n", value); + } + return -1; + } + hive_value_h value_data_cell_offset = hivex_value_data_cell_offset (h, value, &amp...
2011 Apr 13
1
[PATCH hivex] maint: split long lines
...0x%zx already\n", + fprintf (stderr, "hivex__visit_node: contains cycle:" + " visited node 0x%zx already\n", node); errno = ELOOP; @@ -1623,14 +1651,16 @@ hivex__visit_node (hive_h *h, hive_node_h node, } if (vtor->value_string_invalid_utf16) { str = hivex_value_value (h, values[i], &t, &len); - if (vtor->value_string_invalid_utf16 (h, opaque, node, values[i], t, len, key, str) == -1) + if (vtor->value_string_invalid_utf16 (h, opaque, node, values[i], + t, len, ke...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...letions(-) diff --git a/com32/lua/src/cpu.c b/com32/lua/src/cpu.c index 8a246e3..6ef4e5a 100644 --- a/com32/lua/src/cpu.c +++ b/com32/lua/src/cpu.c @@ -9,13 +9,13 @@ #include"lualib.h" #include"cpuid.h" -static void add_string_item(lua_State *L, const char *item, const char *value_str) { +void add_string_item(lua_State *L, const char *item, const char *value_str) { lua_pushstring(L,item); lua_pushstring(L,value_str); lua_settable(L,-3); } -static void add_int_item(lua_State *L, const char *item, int value_int) { +void add_int_item(lua_State *L, const char *item, int valu...
2009 Oct 26
0
[PATCH node] Users can now work with remote libvirt hosts.
...onfig: + def __init__(self): + self.__conf = gconf.client_get_default() + self.__conf.add_dir("/apps/virt-manager", gconf.CLIENT_PRELOAD_NONE) + + def get_connection_list(self): + return self.__conf.get_list("/apps/virt-manager/connections/uris", gconf.VALUE_STRING) + + def add_connection(self, connection): + connections = self.get_connection_list() + if connections.count(connection) is 0: + connections.append(connection) + self.__conf.set_list("/apps/virt-manager/connections/uris", gconf.VALUE_STRING, conne...
2011 Sep 02
1
[PATCH 6/7] hivexml: Report attributes in values instead of text.
...@@ node_start (hive_h *h, void *writer_v, hive_node_h node, const char *name) { int64_t last_modified; char *timebuf; + int ret = 0; xmlTextWriterPtr writer = (xmlTextWriterPtr) writer_v; XML_CHECK (xmlTextWriterStartElement, (writer, BAD_CAST "node")); @@ -278,7 +279,9 @@ value_string (hive_h *h, void *writer_v, hive_node_h node, hive_value_h value, } start_value (writer, key, type, NULL); - XML_CHECK (xmlTextWriterWriteString, (writer, BAD_CAST str)); + XML_CHECK (xmlTextWriterStartAttribute, (writer, BAD_CAST "value")); + XML_CHECK (xmlTextWriterWriteSt...
2011 Dec 13
1
[hivex] [PATCH 1/1] hivexml: Change value type output to standard names
..."REG_RESOURCE_REQUIREMENTS_LIST"; break; + case 11: return "REG_QWORD"; break; + default: return "unknown"; break; + } +} + static void start_value (xmlTextWriterPtr writer, const char *key, const char *type, const char *encoding) @@ -294,7 +320,7 @@ value_string (hive_h *h, void *writer_v, hive_node_h node, hive_value_h value, type = "unknown"; } - start_value (writer, key, type, NULL); + start_value (writer, key, value_type_windows_string (t), NULL); XML_CHECK (xmlTextWriterStartAttribute, (writer, BAD_CAST "value"));...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib
2011 Aug 31
1
[PATCH] hivex: Add byte runs for nodes and values
...rns hive_node_h* or NULL. *) + | RLenNode (* See node_struct_length. *) | RValue (* Returns hive_value_h or 0. *) | RValueList (* Returns hive_value_h* or NULL. *) + | RLenValue (* See value_struct_length. *) | RString (* Returns char* or NULL. *) | RStringList (* Returns char** or NULL. *) | RLenType (* See hivex_value_type. *) @@ -228,6 +231,17 @@ string C<\"\"> here. The default key...
2018 Feb 07
4
BUG: panic when using fs:posix as dict for acl_shared_dict
...648 aclobj = 0x56481e7e9100 key = 0x56481e753058 "vendor/vendor.dovecot/pvt/acl/user=DEST_USERNAME" ts = 1484044488 #14 0x00007f64c0b326d3 in acl_attribute_update_acl (value=0x7ffef8fdafc0, key=<optimized out>, t=0x56481e7f8010) at acl-attributes.c:53 value_str = 0x56481e798bd0 "lookup read write-seen" id = 0x56481e798bbe "user=DEST_USERNAME" rights = <optimized out> error = 0x7ffef8fdafc0 "?y\036HV" update = {rights = {id_type = ACL_ID_USER, identifier = 0x56481e798bc3 "DEST_USERNAM...
2003 Nov 10
8
winbindd panic daemon dies
Hi All, can anyone make any sense of the error below, please advise if I need to log this as a bug but I'm not sure how to further diagnose what is happening. This is from my winbindd log file, thanks Andy. [2003/11/07 17:47:59, 1] nsswitch/winbindd.c:main(832) winbindd version 3.0.0 started. Copyright The Samba Team 2000-2003 [2003/11/07 17:48:00, 1]
2013 Jul 25
19
[PATCH hivex 00/19] Fix read/write handling of li-records.
This is, hopefully, a full fix for handling of li-records. See: https://bugzilla.redhat.com/show_bug.cgi?id=717583 https://bugzilla.redhat.com/show_bug.cgi?id=987463 Rich.
2017 Aug 09
16
[PATCH v12 00/11] Reimplement inspection in the daemon.
This fixes almost everything. Note that it adds an extra commit which fixes the whole utf8/iconv business. It's probably better to list what isn't fixed: (1) I didn't leave the osinfo code around because I'm still haven't looked too closely at virt-builder-repository. Can't we just fetch this code from the git history when we need it? (2) I didn't change the way