There are some hard ones in hangouts_pblite.c. Apparently back in sep 2016 I
tried to fix those and got invalid reads elsewhere and left the valgrind output
as a warning there.
/*
* Hangouts Plugin for libpurple/Pidgin
* Copyright (c) 2015-2016 Eion Robb, Mike Ruprecht
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _HANGOUTS_PBLITE_H_
#define _HANGOUTS_PBLITE_H_
#include<protobuf-c/protobuf-c.h>
#include"hangouts_json.h"
#include"hangouts.pb-c.h"
/**
* Decode a JsonArray into a ProtobufCMessage.
*
* \param message
* The message type to store as. Is also used as the output.
* \param pblite_array
* The JSON array of data to parse.
* \param ignore_first_item
* Whether to skip the first item in the array (sometimes it's garbage data to identify type).
* \return
* TRUE if successful, FALSE if there was an error.