LCOV - code coverage report
Current view: top level - xmpp - xmpp_proto.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 236 299 78.9 %
Date: 2026-06-18 01:51:13 Functions: 22 28 78.6 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #include "xmpp/xmpp_proto.h"
       6             : #include <iostream>
       7             : #include <string>
       8             : #include <boost/algorithm/string/replace.hpp>
       9             : #include <boost/algorithm/string/predicate.hpp>
      10             : 
      11             : #include "xmpp/xmpp_connection.h"
      12             : #include "xmpp/xmpp_log.h"
      13             : #include "xmpp/xmpp_session.h"
      14             : #include "xmpp/xmpp_str.h"
      15             : 
      16             : #include "sandesh/sandesh_trace.h"
      17             : #include "sandesh/common/vns_types.h"
      18             : #include "sandesh/common/vns_constants.h"
      19             : #include "sandesh/xmpp_message_sandesh_types.h"
      20             : #include "sandesh/xmpp_trace_sandesh_types.h"
      21             : 
      22             : using namespace std;
      23             : 
      24             : unique_ptr<XmlBase> XmppProto::open_doc_(AllocXmppXmlImpl(sXMPP_STREAM_OPEN));
      25             : 
      26           0 : XmppStanza::XmppStanza() {
      27           0 : }
      28             : 
      29           0 : XmppProto::XmppProto() {
      30           0 : }
      31             : 
      32           0 : XmppProto::~XmppProto() {
      33           0 : }
      34             : 
      35       20311 : int XmppProto::EncodeStream(const XmppStreamMessage &str, string &to,
      36             :                             string &from, const string &xmlns, uint8_t *buf,
      37             :                             size_t size) {
      38       20311 :     int len = 0;
      39             : 
      40       20311 :     switch (str.strmtype) {
      41        8047 :         case (XmppStanza::XmppStreamMessage::INIT_STREAM_HEADER):
      42        8047 :             len = EncodeOpen(buf, to, from, xmlns, size);
      43        8047 :             break;
      44        7819 :         case (XmppStanza::XmppStreamMessage::INIT_STREAM_HEADER_RESP):
      45        7819 :             len = EncodeOpenResp(buf, to, from, size);
      46        7819 :             break;
      47        4445 :         case (XmppStanza::XmppStreamMessage::FEATURE_TLS):
      48        4445 :             switch (str.strmtlstype) {
      49        1512 :                 case (XmppStanza::XmppStreamMessage::TLS_FEATURE_REQUEST):
      50        1512 :                     len = EncodeFeatureTlsRequest(buf);
      51        1512 :                     break;
      52        1469 :                 case (XmppStanza::XmppStreamMessage::TLS_START):
      53        1469 :                     len = EncodeFeatureTlsStart(buf);
      54        1469 :                     break;
      55        1464 :                 case (XmppStanza::XmppStreamMessage::TLS_PROCEED):
      56        1464 :                     len = EncodeFeatureTlsProceed(buf);
      57        1464 :                     break;
      58             :             }
      59        4445 :             break;
      60           0 :         default:
      61           0 :             break;
      62             :     }
      63             : 
      64       20311 :     return len;
      65             : }
      66             : 
      67        6442 : int XmppProto::EncodeStream(const XmppStanza::XmppMessage &str, uint8_t *buf,
      68             :                             size_t size) {
      69        6442 :     int ret = 0;
      70             : 
      71        6442 :     if (str.type == XmppStanza::WHITESPACE_MESSAGE_STANZA) {
      72        6442 :         return EncodeWhitespace(buf);
      73             :     }
      74             : 
      75           0 :     return ret;
      76             : }
      77             : 
      78           0 : int XmppProto::EncodeMessage(XmlBase *dom, uint8_t *buf, size_t size) {
      79           0 :     int len = dom->WriteDoc(buf);
      80             : 
      81           0 :     return len;
      82             : }
      83             : 
      84           0 : int XmppProto::EncodePresence(uint8_t *buf, size_t size) {
      85           0 :     return 0;
      86             : }
      87             : 
      88           0 : int XmppProto::EncodeIq(const XmppStanza::XmppMessageIq *iq,
      89             :                         XmlBase *doc, uint8_t *buf, size_t size) {
      90           0 :     unique_ptr<XmlBase> send_doc_(AllocXmppXmlImpl());
      91             : 
      92             :     // create
      93           0 :     send_doc_->LoadDoc("");
      94           0 :     send_doc_->AddNode("iq", "");
      95             : 
      96           0 :     switch(iq->stype) {
      97           0 :         case XmppStanza::XmppMessageIq::GET:
      98           0 :             send_doc_->AddAttribute("type", "get");
      99           0 :             break;
     100           0 :         case XmppStanza::XmppMessageIq::SET:
     101           0 :             send_doc_->AddAttribute("type", "set");
     102           0 :             break;
     103           0 :         case XmppStanza::XmppMessageIq::RESULT:
     104           0 :             send_doc_->AddAttribute("type", "result");
     105           0 :             break;
     106           0 :         case XmppStanza::XmppMessageIq::ERROR:
     107           0 :             send_doc_->AddAttribute("type", "error");
     108           0 :             break;
     109           0 :         default:
     110           0 :             break;
     111             :     }
     112           0 :     send_doc_->AddAttribute("from", iq->from);
     113           0 :     send_doc_->AddAttribute("to", iq->to);
     114           0 :     send_doc_->AddAttribute("id", "id1");
     115             : 
     116           0 :     send_doc_->AddChildNode("pubsub", "");
     117           0 :     send_doc_->AddAttribute("xmlns", "http://jabber.org/protocol/pubsub");
     118             : 
     119           0 :     send_doc_->AppendDoc("pubsub", doc);
     120             : 
     121             :     //Returns byte encoded in the doc
     122           0 :     int len = send_doc_->WriteDoc(buf);
     123             : 
     124           0 :     return len;
     125           0 : }
     126             : 
     127        6442 : int XmppProto::EncodeWhitespace(uint8_t *buf) {
     128        6442 :     string str(sXMPP_WHITESPACE);
     129             : 
     130        6442 :     int len = str.size();
     131        6442 :     if (len > 0) {
     132        6442 :         memcpy(buf, str.data(), len);
     133             :     }
     134             : 
     135        6442 :     return len;
     136        6442 : }
     137             : 
     138        7819 : int XmppProto::EncodeOpenResp(uint8_t *buf, string &to, string &from,
     139             :                               size_t max_size) {
     140             : 
     141        7819 :     unique_ptr<XmlBase> resp_doc(XmppStanza::AllocXmppXmlImpl(sXMPP_STREAM_RESP));
     142             : 
     143        7819 :     if (resp_doc.get() == NULL) {
     144           0 :         return 0;
     145             :     }
     146             : 
     147        7819 :     SetTo(to, resp_doc.get());
     148        7819 :     SetFrom(from, resp_doc.get());
     149             : 
     150        7819 :     std::stringstream ss;
     151        7819 :     resp_doc->PrintDoc(ss);
     152        7819 :     std::string msg;
     153        7819 :     msg = ss.str();
     154        7819 :     size_t len = msg.size();
     155        7819 :     if (len > max_size) {
     156           0 :         LOG(ERROR, "\n (Open Confirm) size greater than max buffer size \n");
     157           0 :         return 0;
     158             :     } else {
     159        7819 :         boost::algorithm::ireplace_last(msg, "/", " ");
     160        7819 :         memcpy(buf, msg.c_str(), len);
     161        7819 :         return len;
     162             :     }
     163        7819 : }
     164             : 
     165        8047 : int XmppProto::EncodeOpen(uint8_t *buf, string &to, string &from,
     166             :                           const string &xmlns, size_t max_size) {
     167             : 
     168        8047 :     if (open_doc_.get() ==  NULL) {
     169           0 :         return 0;
     170             :     }
     171             : 
     172        8047 :     SetTo(to, open_doc_.get());
     173        8047 :     SetFrom(from, open_doc_.get());
     174        8047 :     SetXmlns(xmlns, open_doc_.get());
     175             : 
     176             :     //Returns byte encoded in the doc
     177        8047 :     std::stringstream ss;
     178        8047 :     open_doc_->PrintDoc(ss);
     179        8047 :     std::string msg;
     180        8047 :     msg = ss.str();
     181        8047 :     size_t len = msg.size();
     182        8047 :     if (len > max_size) {
     183           0 :         LOG(ERROR, "\n (Open Message) size greater than max buffer size \n");
     184           0 :         return 0;
     185             :     } else {
     186        8047 :         boost::algorithm::ireplace_last(msg, "/", " ");
     187        8047 :         memcpy(buf, msg.c_str(), len);
     188        8047 :         return len;
     189             :     }
     190        8047 : }
     191             : 
     192        1512 : int XmppProto::EncodeFeatureTlsRequest(uint8_t *buf) {
     193        1512 :     unique_ptr<XmlBase> resp_doc(XmppStanza::AllocXmppXmlImpl(sXMPP_STREAM_FEATURE_TLS));
     194             :     //Returns byte encoded in the doc
     195        1512 :     int len = resp_doc->WriteDoc(buf);
     196        1512 :     return len;
     197        1512 : }
     198             : 
     199        1469 : int XmppProto::EncodeFeatureTlsStart(uint8_t *buf) {
     200        1469 :     unique_ptr<XmlBase> resp_doc(XmppStanza::AllocXmppXmlImpl(sXMPP_STREAM_START_TLS));
     201             :     //Returns byte encoded in the doc
     202        1469 :     int len = resp_doc->WriteDoc(buf);
     203        1469 :     return len;
     204        1469 : }
     205             : 
     206        1464 : int XmppProto::EncodeFeatureTlsProceed(uint8_t *buf) {
     207        1464 :     unique_ptr<XmlBase> resp_doc(XmppStanza::AllocXmppXmlImpl(sXMPP_STREAM_PROCEED_TLS));
     208             :     //Returns byte encoded in the doc
     209        1464 :     int len = resp_doc->WriteDoc(buf);
     210        1464 :     return len;
     211        1464 : }
     212             : 
     213     4169176 : XmppStanza::XmppMessage *XmppProto::Decode(const XmppConnection *connection,
     214             :                                            const string &ts) {
     215     4169176 :     XmlBase *impl = XmppStanza::AllocXmppXmlImpl();
     216     4169145 :     if (impl == nullptr) {
     217           0 :         return nullptr;
     218             :     }
     219             : 
     220     4169145 :     XmppStanza::XmppMessage *msg = DecodeInternal(connection, ts, impl);
     221     4169193 :     if (!msg) {
     222           0 :         return nullptr;
     223             :     }
     224             : 
     225             :     // transfer ownership of the dom implementation
     226     4169193 :     msg->dom.reset(impl);
     227             : 
     228     4169158 :     return msg;
     229             : }
     230             : 
     231     4169146 : XmppStanza::XmppMessage *XmppProto::DecodeInternal(
     232             :         const XmppConnection *connection, const string &ts, XmlBase *impl) {
     233     4169146 :     XmppStanza::XmppMessage *ret = nullptr;
     234             : 
     235     4169146 :     string ns(sXMPP_STREAM_O);
     236     4169123 :     string ws(sXMPP_WHITESPACE);
     237     4169106 :     string iq(sXMPP_IQ_KEY);
     238             : 
     239     4169098 :     if (ts.find(sXMPP_IQ) != string::npos) {
     240       98592 :         string ts_tmp = ts;
     241             : 
     242       98591 :         if (impl->LoadDoc(ts) == -1) {
     243           0 :             XMPP_WARNING(XmppIqMessageParseFail, connection->ToUVEKey(),
     244             :                          XMPP_PEER_DIR_IN);
     245           0 :             assert(false);
     246             :             goto done;
     247             :         }
     248             : 
     249       98593 :         XmppStanza::XmppMessageIq *msg = new XmppStanza::XmppMessageIq;
     250       98593 :         impl->ReadNode(iq);
     251       98588 :         msg->to = XmppProto::GetTo(impl);
     252       98590 :         msg->from = XmppProto::GetFrom(impl);
     253       98590 :         msg->id = XmppProto::GetId(impl);
     254       98592 :         msg->iq_type = XmppProto::GetType(impl);
     255             :         // action is subscribe,publish,collection
     256       98589 :         const char *action = XmppProto::GetAction(impl, msg->iq_type);
     257       98588 :         if (action) {
     258       98573 :             msg->action = action;
     259             :         }
     260       98588 :         if (XmppProto::GetNode(impl, msg->action)) {
     261       98574 :             msg->node = XmppProto::GetNode(impl, msg->action);
     262             :         }
     263             :         //associate or dissociate collection node
     264       98592 :         if (msg->action.compare("collection") == 0) {
     265       41682 :             if (XmppProto::GetAsNode(impl)) {
     266       27314 :                 msg->as_node = XmppProto::GetAsNode(impl);
     267       27314 :                 msg->is_as_node = true;
     268       14368 :             } else if (XmppProto::GetDsNode(impl)) {
     269       14340 :                 msg->as_node = XmppProto::GetDsNode(impl);
     270       14340 :                 msg->is_as_node = false;
     271             :             }
     272             :         }
     273             : 
     274             :         //msg->dom.reset(impl);
     275             : 
     276       98591 :         ret = msg;
     277             : 
     278       98591 :         XMPP_UTDEBUG(XmppIqMessageProcess, connection->ToUVEKey(),
     279             :                      XMPP_PEER_DIR_IN, msg->node, msg->action, msg->from,
     280             :                      msg->to, msg->id, msg->iq_type);
     281       98593 :         goto done;
     282             : 
     283     4169199 :     } else if (ts.find(sXMPP_MESSAGE) != string::npos) {
     284             : 
     285     1563920 :         if (impl->LoadDoc(ts) == -1) {
     286           0 :             XMPP_WARNING(XmppChatMessageParseFail, connection->ToUVEKey(),
     287             :                          XMPP_PEER_DIR_IN);
     288           0 :             goto done;
     289             :         }
     290             :         XmppStanza::XmppMessage *msg = new XmppStanza::XmppChatMessage(
     291     1563920 :                                            STATE_NONE);
     292     1563920 :         impl->ReadNode(sXMPP_MESSAGE_KEY);
     293             : 
     294     1563920 :         msg->to = XmppProto::GetTo(impl);
     295     1563920 :         msg->from = XmppProto::GetFrom(impl);
     296     1563920 :         ret = msg;
     297             : 
     298     1563920 :         XMPP_UTDEBUG(XmppChatMessageProcess, connection->ToUVEKey(),
     299             :                      XMPP_PEER_DIR_IN, msg->type, msg->from, msg->to);
     300     1563920 :         goto done;
     301             : 
     302     2506686 :     } else if (ts.find(sXMPP_STREAM_O) != string::npos) {
     303             : 
     304             :         // ensusre stream open is at the beginning of the message
     305       15710 :         string ts_tmp = ts;
     306       15713 :         ts_tmp.erase(std::remove(ts_tmp.begin(), ts_tmp.end(), '\n'), ts_tmp.end());
     307             : 
     308       15712 :         if ((ts_tmp.compare(0, strlen(sXMPP_STREAM_START),
     309       31424 :              sXMPP_STREAM_START) != 0) &&
     310       15712 :             (ts_tmp.compare(0, strlen(sXMPP_STREAM_START_S),
     311             :              sXMPP_STREAM_START_S) != 0)) {
     312           0 :             XMPP_WARNING(XmppBadMessage, connection->ToUVEKey(),
     313             :                          XMPP_PEER_DIR_IN,
     314             :                          "Open message not at the beginning.", ts);
     315           0 :             goto done;
     316             :         }
     317             : 
     318             :         // check if the buf is xmpp open or response message
     319             :         // As end tag will be missing we need to modify the
     320             :         // string for stream open, else dom decoder will fail
     321       15712 :         boost::algorithm::replace_last(ts_tmp, ">", "/>");
     322       15712 :         if (impl->LoadDoc(ts_tmp) == -1) {
     323           0 :             XMPP_WARNING(XmppBadMessage, connection->ToUVEKey(),
     324             :                          XMPP_PEER_DIR_IN, "Open message parse failed.", ts);
     325           0 :             goto done;
     326             :         }
     327             : 
     328             :         XmppStanza::XmppStreamMessage *strm =
     329       15713 :             new XmppStanza::XmppStreamMessage();
     330       15711 :         strm->strmtype = XmppStanza::XmppStreamMessage::INIT_STREAM_HEADER;
     331       15711 :         impl->ReadNode(ns);
     332       15710 :         strm->to = XmppProto::GetTo(impl);
     333       15711 :         strm->from = XmppProto::GetFrom(impl);
     334       15710 :         strm->xmlns = XmppProto::GetXmlns(impl);
     335             : 
     336       15709 :         ret = strm;
     337             : 
     338       15709 :         XMPP_UTDEBUG(XmppRxOpenMessage, connection->ToUVEKey(),
     339             :                      XMPP_PEER_DIR_IN, strm->from, strm->to);
     340             : 
     341     2506687 :     } else if (ts.find(sXMPP_STREAM_NS_TLS) != string::npos) {
     342             : 
     343        4365 :         if (impl->LoadDoc(ts) == -1) {
     344           0 :             XMPP_WARNING(XmppBadMessage, connection->ToUVEKey(),
     345             :                          XMPP_PEER_DIR_IN, "Stream TLS parse failed.", ts);
     346           0 :             goto done;
     347             :         }
     348             : 
     349             :         // find stream:features tls required
     350        5820 :         if ((ts.find(sXMPP_STREAM_FEATURES_O) != string::npos) &&
     351        5820 :             (ts.find(sXMPP_STREAM_STARTTLS_O) != string::npos) &&
     352        1455 :             (ts.find(sXMPP_REQUIRED_O) != string::npos)) {
     353             : 
     354             :             XmppStanza::XmppStreamMessage *strm =
     355        1455 :                 new XmppStanza::XmppStreamMessage();
     356        1455 :             strm->strmtype = XmppStanza::XmppStreamMessage::FEATURE_TLS;
     357        1455 :             strm->strmtlstype = XmppStanza::XmppStreamMessage::TLS_FEATURE_REQUEST;
     358             : 
     359        1455 :             ret = strm;
     360             : 
     361        1455 :             XMPP_UTDEBUG(XmppRxStreamTlsRequired, connection->ToUVEKey(),
     362             :                          XMPP_PEER_DIR_IN);
     363             : 
     364        2910 :         } else if (ts.find(sXMPP_STREAM_STARTTLS_O) != string::npos) {
     365             :             XmppStanza::XmppStreamMessage *strm =
     366        1455 :                 new XmppStanza::XmppStreamMessage();
     367        1455 :             strm->strmtype = XmppStanza::XmppStreamMessage::FEATURE_TLS;
     368        1455 :             strm->strmtlstype = XmppStanza::XmppStreamMessage::TLS_START;
     369        1455 :             ret = strm;
     370             : 
     371        1455 :             XMPP_UTDEBUG(XmppRxStreamStartTls, connection->ToUVEKey(),
     372             :                          XMPP_PEER_DIR_IN);
     373             : 
     374        1455 :         } else if (ts.find(sXMPP_STREAM_PROCEED_O) != string::npos) {
     375             :             XmppStanza::XmppStreamMessage *strm =
     376        1455 :                 new XmppStanza::XmppStreamMessage();
     377        1455 :             strm->strmtype = XmppStanza::XmppStreamMessage::FEATURE_TLS;
     378        1455 :             strm->strmtlstype = XmppStanza::XmppStreamMessage::TLS_PROCEED;
     379             : 
     380        1455 :             ret = strm;
     381             : 
     382        1455 :             XMPP_UTDEBUG(XmppRxStreamProceed, connection->ToUVEKey(),
     383             :                          XMPP_PEER_DIR_IN);
     384             :         }
     385        4365 :         goto done;
     386             : 
     387     2486614 :     } else if (ts.find_first_of(sXMPP_VALIDWS) != string::npos) {
     388             : 
     389             :         XmppStanza::XmppMessage *msg =
     390     2486616 :             new XmppStanza::XmppMessage(WHITESPACE_MESSAGE_STANZA);
     391     2486616 :         return msg;
     392             :     } else {
     393           0 :         XMPP_WARNING(XmppBadMessage, connection->ToUVEKey(),
     394             :                      XMPP_PEER_DIR_IN, "Message not supported", ts);
     395             :     }
     396             : 
     397     1682583 : done:
     398             : 
     399     1682583 :     return ret;
     400     4169199 : }
     401             : 
     402       15866 : int XmppProto::SetTo(string &to, XmlBase *doc) {
     403       15866 :     if (!doc) return -1;
     404             : 
     405       15866 :     string ns(sXMPP_STREAM_O);
     406       15866 :     doc->ReadNode(ns);
     407       15866 :     doc->ModifyAttribute("to", to);
     408             : 
     409       15863 :     return 0;
     410       15863 : }
     411             : 
     412       15866 : int XmppProto::SetFrom(string &from, XmlBase *doc) {
     413       15866 :     if (!doc) return -1;
     414             : 
     415       15866 :     string ns(sXMPP_STREAM_O);
     416       15866 :     doc->ReadNode(ns);
     417       15866 :     return doc->ModifyAttribute("from", from);
     418       15866 : }
     419             : 
     420        8047 : int XmppProto::SetXmlns(const string &xmlns, XmlBase *doc) {
     421        8047 :     if (!doc)
     422           0 :         return -1;
     423             : 
     424        8047 :     string ns(sXMPP_STREAM_O);
     425        8047 :     doc->ReadNode(ns);
     426        8047 :     return doc->ModifyAttribute("xmlns", xmlns);
     427        8047 : }
     428             : 
     429     1678192 : const char *XmppProto::GetTo(XmlBase *doc) {
     430     1678192 :     if (!doc) return NULL;
     431             : 
     432     1678192 :     string tmp("to");
     433     1678194 :     return doc->ReadAttrib(tmp);
     434     1678194 : }
     435             : 
     436     1678201 : const char *XmppProto::GetFrom(XmlBase *doc) {
     437     1678201 :     if (!doc) return NULL;
     438             : 
     439     1678201 :     string tmp("from");
     440     1678195 :     return doc->ReadAttrib(tmp);
     441     1678199 : }
     442             : 
     443       15710 : const char *XmppProto::GetXmlns(XmlBase *doc) {
     444       15710 :     if (!doc)
     445           0 :         return NULL;
     446             : 
     447       15710 :     string tmp("xmlns");
     448       15710 :     return doc->ReadAttrib(tmp);
     449       15709 : }
     450             : 
     451       98590 : const char *XmppProto::GetId(XmlBase *doc) {
     452       98590 :     if (!doc) return NULL;
     453             : 
     454       98590 :     string tmp("id");
     455       98591 :     return doc->ReadAttrib(tmp);
     456       98592 : }
     457             : 
     458       98592 : const char *XmppProto::GetType(XmlBase *doc) {
     459       98592 :     if (!doc) return NULL;
     460             : 
     461       98592 :     string tmp("type");
     462       98589 :     return doc->ReadAttrib(tmp);
     463       98589 : }
     464             : 
     465       98589 : const char *XmppProto::GetAction(XmlBase *doc, const string &str) {
     466       98589 :     if (!doc) return NULL;
     467             : 
     468       98589 :     if (str.compare("set") == 0) {
     469       98578 :         doc->ReadNode("pubsub");
     470       98572 :         return(doc->ReadChildNodeName());
     471          15 :     } else if (str.compare("get") == 0) {
     472             :     }
     473             : 
     474          15 :     return(NULL);
     475             : }
     476             : 
     477      197160 : const char *XmppProto::GetNode(XmlBase *doc, const string &str) {
     478      197160 :     if (!doc) return NULL;
     479             : 
     480      197160 :     if (!str.empty()) {
     481      197145 :         return(doc->ReadAttrib("node"));
     482             :     }
     483             : 
     484          15 :     return(NULL);
     485             : }
     486             : 
     487       68996 : const char *XmppProto::GetAsNode(XmlBase *doc) {
     488       68996 :     if (!doc) return NULL;
     489             : 
     490       68996 :     const char *node = doc->ReadNode("associate");
     491       68996 :     if (node != NULL) {
     492       54628 :         return(doc->ReadAttrib("node"));
     493             :     }
     494             : 
     495       14368 :     return(NULL);
     496             : }
     497             : 
     498       28708 : const char *XmppProto::GetDsNode(XmlBase *doc) {
     499       28708 :     if (!doc) return NULL;
     500             : 
     501       28708 :     const char *node = doc->ReadNode("dissociate");
     502       28707 :     if (node != NULL) {
     503       28679 :         return(doc->ReadAttrib("node"));
     504             :     }
     505             : 
     506          28 :     return(NULL);
     507             : }

Generated by: LCOV version 1.14