<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BUG: uninitialized pointer in httpsrv_plugin_task() in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-uninitialized-pointer-in-httpsrv-plugin-task/m-p/353647#M11511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've played a little with KSDK MQX httpsrv_demo application focused to websocket part as it is my primary interest and found the application starts crashing randomly with corrupted memory. So I've tracked it down to the function httpsrv_plugin_task() in tcpip/rtcs/source/apps/httpsrv_task.c where unitialized pointer pl_context is accessed (tested to NULL). The bug is simple fixed by initializing the pointer to NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps somebody :smileyhappy:&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: The websocket implementation is quite good as it passed almost all tests in AutobahnTestSuite.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 16:02:28 GMT</pubDate>
    <dc:creator>PetrK</dc:creator>
    <dc:date>2014-11-19T16:02:28Z</dc:date>
    <item>
      <title>BUG: uninitialized pointer in httpsrv_plugin_task()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-uninitialized-pointer-in-httpsrv-plugin-task/m-p/353647#M11511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've played a little with KSDK MQX httpsrv_demo application focused to websocket part as it is my primary interest and found the application starts crashing randomly with corrupted memory. So I've tracked it down to the function httpsrv_plugin_task() in tcpip/rtcs/source/apps/httpsrv_task.c where unitialized pointer pl_context is accessed (tested to NULL). The bug is simple fixed by initializing the pointer to NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps somebody :smileyhappy:&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: The websocket implementation is quite good as it passed almost all tests in AutobahnTestSuite.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 16:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-uninitialized-pointer-in-httpsrv-plugin-task/m-p/353647#M11511</guid>
      <dc:creator>PetrK</dc:creator>
      <dc:date>2014-11-19T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: uninitialized pointer in httpsrv_plugin_task()</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-uninitialized-pointer-in-httpsrv-plugin-task/m-p/353648#M11512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your bug report.&lt;/P&gt;&lt;P&gt;It is known issue and it was already fixed at development branch – so it will be fixed in next version of KSDK.&lt;/P&gt;&lt;P&gt;Function httpsrv_plugin_task() in httpsrv_task.c file contains additional two lines:&lt;/P&gt;&lt;P&gt;pl_context = NULL;&lt;/P&gt;&lt;P&gt;pl_callbacks = NULL;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;just below line “server-&amp;gt;plugin_tid = _task_get_id();”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 17:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-uninitialized-pointer-in-httpsrv-plugin-task/m-p/353648#M11512</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-11-19T17:41:48Z</dc:date>
    </item>
  </channel>
</rss>

