[PATCH] Modification to playbackFileparser.c

Adrienne Ambrose <AAmbrose@...>


No middleware dependencies.

No O/S dependencies.



Currently this will create a msg using the default payload rather than the payload in the file.

To expose this create a file using qpid msg then try to load wih default payload set to avis msg.


The below patch will resolve this issue.



PATCH:- 0001-Modification-to-playbackFileParser.c

From 0c0938fd90243753feb8997f306545c7551c51b1 Mon Sep 17 00:00:00 2001

From: A Ambrose <aambrose@...>

Date: Mon, 25 Aug 2014 12:10:26 +0100

Subject: [PATCH] Modification to playbackFileParser.c

Currently this will create a msg using the default payload rather than the

payload in the file.



Signed-off-by: A Ambrose <aambrose@...>


mama/c_cpp/src/c/playback/playbackFileParser.c |    2 +-

1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/mama/c_cpp/src/c/playback/playbackFileParser.c b/mama/c_cpp/src/c/playback/playbackFileParser.c

index c8f1717..0f2849c 100644

--- a/mama/c_cpp/src/c/playback/playbackFileParser.c

+++ b/mama/c_cpp/src/c/playback/playbackFileParser.c

@@ -79,6 +79,7 @@ mama_status mamaPlaybackFileParser_init (mamaPlaybackFileParser

     impl->myMamaMsgLen  = 0;

     impl->myMaxMsgLen   = 0;

     impl->myMsgBuffer   = NULL;

+    impl->myMamaMsg    = NULL;

     return MAMA_STATUS_OK;


@@ -98,7 +99,6 @@ mamaPlaybackFileParser_allocate (mamaPlaybackFileParser* fileParser)


         return MAMA_STATUS_NOMEM;


-              mamaMsg_create(&impl->myMamaMsg);

     mamaPlaybackFileParser_init (impl);

     *fileParser = (mamaPlaybackFileParserImpl*)impl;




This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Intercontinental Exchange, Inc. (ICE), Euronext or any of their subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.