Fri, 28 Feb 2014 20:56:22 +0100
Merge release-2.x.y
--- a/ChangeLog Fri Feb 28 15:59:58 2014 +0530 +++ b/ChangeLog Fri Feb 28 20:56:22 2014 +0100 @@ -68,9 +68,13 @@ * Ciphers are now built from the libpurple directory. * Doxygen has been replaced by gtk-doc for generating documentation. +version 2.10.10 (?/?/?): Finch: * Fix build against Python 3. (Ed Catmur) (#15969) + Gadu-Gadu: + * Updated internal libgadu to version 1.12.0-rc2. + version 2.10.9 (2/2/2014): XMPP: * Fix problems logging into some servers including jabber.org and
--- a/libpurple/protocols/gg/Makefile.mingw Fri Feb 28 15:59:58 2014 +0530 +++ b/libpurple/protocols/gg/Makefile.mingw Fri Feb 28 20:56:22 2014 +0100 @@ -8,7 +8,7 @@ include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak TARGET = libgg -CFLAGS += -include win32dep.h -DGG_IGNORE_DEPRECATED +CFLAGS += -DGG_IGNORE_DEPRECATED TYPE = PLUGIN # Static or Plugin...
--- a/libpurple/protocols/gg/lib/protobuf-c.c Fri Feb 28 15:59:58 2014 +0530 +++ b/libpurple/protocols/gg/lib/protobuf-c.c Fri Feb 28 20:56:22 2014 +0100 @@ -58,6 +58,14 @@ * use size_t consistently */ +#include "config.h" +#define HAVE_PROTOBUF_C_CONFIG_H 0 +#ifdef GG_CONFIG_BIGENDIAN +# define IS_LITTLE_ENDIAN 0 +#else +# define IS_LITTLE_ENDIAN 1 +#endif + #if HAVE_PROTOBUF_C_CONFIG_H #include "protobuf-c-config.h" #endif @@ -371,7 +379,7 @@ case PROTOBUF_C_TYPE_DOUBLE: return rv + 8; case PROTOBUF_C_TYPE_ENUM: - // TODO: is this correct for negative-valued enums? + /* TODO: is this correct for negative-valued enums? */ return rv + uint32_size (*(const uint32_t *) member); case PROTOBUF_C_TYPE_STRING: { @@ -384,7 +392,7 @@ size_t len = ((const ProtobufCBinaryData*) member)->len; return rv + uint32_size (len) + len; } - //case PROTOBUF_C_TYPE_GROUP: + /* case PROTOBUF_C_TYPE_GROUP: */ case PROTOBUF_C_TYPE_MESSAGE: { const ProtobufCMessage *msg = * (ProtobufCMessage * const *) member; @@ -496,7 +504,7 @@ rv += uint32_size (len) + len; } break; - //case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED + /* case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED */ } if (field->packed) header_size += uint32_size (rv); @@ -798,7 +806,7 @@ out[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED; return rv + binary_data_pack (bd, out + rv); } - //case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED + /* case PROTOBUF_C_TYPE_GROUP: // NOT SUPPORTED */ case PROTOBUF_C_TYPE_MESSAGE: { out[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED; @@ -1143,7 +1151,7 @@ rv += sublen; break; } - //PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED + /* PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED */ case PROTOBUF_C_TYPE_MESSAGE: { uint8_t simple_buffer_scratch[256]; @@ -1812,7 +1820,7 @@ bd->len = len - pref_len; return 1; } - //case PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED + /* case PROTOBUF_C_TYPE_GROUP, // NOT SUPPORTED */ case PROTOBUF_C_TYPE_MESSAGE: if (wire_type != PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED) return 0; @@ -2205,6 +2213,7 @@ size_t used = parse_tag_and_wiretype (rem, at, &tag, &wire_type); const ProtobufCFieldDescriptor *field; ScannedMember tmp; + memset(&tmp, 0, sizeof(ScannedMember)); if (used == 0) { UNPACK_ERROR (("error parsing tag/wiretype at offset %u",