<?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>MQX Software Solutionsのトピックbug in  ppphdlc.c</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-ppphdlc-c/m-p/441325#M14752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While checking why I cannot connect to GPRS in &lt;A href="https://community.nxp.com/thread/380640" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.nxp.com/thread/380640&lt;/A&gt;&amp;nbsp;&amp;nbsp; I am going through source code and I found a bug in&amp;nbsp; ppphdlc.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 3 loops with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14484535407402520" data-renderedposition="92.5_8_1232_64" jivemacro_uid="_14484535407402520" modifiedtitle="true"&gt;&lt;P&gt; if(fgetc(ppphdlc_ptr-&amp;gt;DEVICE) == PPPHDLC_FLAG)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is&amp;nbsp; wait--; on the next line, so it will become 0xFFFFFFFF and the loop doesn't end immediately&lt;/P&gt;&lt;P&gt;I would suggest to repair it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14484537330778474 jive_macro_code jive_text_macro" data-renderedposition="261.5_8_1232_80" jivemacro_uid="_14484537330778474" modifiedtitle="true"&gt;&lt;P&gt; if(fgetc(ppphdlc_ptr-&amp;gt;DEVICE) == PPPHDLC_FLAG)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: wouldn't it be better to do things like this (protocol parsing) with state machine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: is this the right place to write things like this, or should I report it somewhere else so that it gets to the right people?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 12:19:41 GMT</pubDate>
    <dc:creator>Novalis</dc:creator>
    <dc:date>2015-11-25T12:19:41Z</dc:date>
    <item>
      <title>bug in  ppphdlc.c</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-ppphdlc-c/m-p/441325#M14752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While checking why I cannot connect to GPRS in &lt;A href="https://community.nxp.com/thread/380640" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.nxp.com/thread/380640&lt;/A&gt;&amp;nbsp;&amp;nbsp; I am going through source code and I found a bug in&amp;nbsp; ppphdlc.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 3 loops with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14484535407402520" data-renderedposition="92.5_8_1232_64" jivemacro_uid="_14484535407402520" modifiedtitle="true"&gt;&lt;P&gt; if(fgetc(ppphdlc_ptr-&amp;gt;DEVICE) == PPPHDLC_FLAG)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is&amp;nbsp; wait--; on the next line, so it will become 0xFFFFFFFF and the loop doesn't end immediately&lt;/P&gt;&lt;P&gt;I would suggest to repair it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14484537330778474 jive_macro_code jive_text_macro" data-renderedposition="261.5_8_1232_80" jivemacro_uid="_14484537330778474" modifiedtitle="true"&gt;&lt;P&gt; if(fgetc(ppphdlc_ptr-&amp;gt;DEVICE) == PPPHDLC_FLAG)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: wouldn't it be better to do things like this (protocol parsing) with state machine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: is this the right place to write things like this, or should I report it somewhere else so that it gets to the right people?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-ppphdlc-c/m-p/441325#M14752</guid>
      <dc:creator>Novalis</dc:creator>
      <dc:date>2015-11-25T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: bug in  ppphdlc.c</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-ppphdlc-c/m-p/441326#M14753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have noticed this bug and reported it to the developer team, thank you for your sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 14:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-ppphdlc-c/m-p/441326#M14753</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-11-25T14:01:03Z</dc:date>
    </item>
  </channel>
</rss>

