ctf_metadata_decoder_packetized_file_stream_to_buf() uses
ctf_metadata_decoder_packetized_file_stream_to_buf_with_mdec() with
a NULL mdec. This results in a NULL dereference whenever the mdec
error sream is accessed.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include "decoder.h"
#include "scanner.h"
#include "decoder.h"
#include "scanner.h"
-#define PRINT_ERR_STREAM mdec->err_stream
+#define PRINT_ERR_STREAM (mdec ? mdec->err_stream : stderr)
#define PRINT_PREFIX "metadata-decoder"
#include "../print.h"
#define PRINT_PREFIX "metadata-decoder"
#include "../print.h"