<?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 FLEXSPI_ReadBlocking() buffer overflow? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831348#M127709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #51626f; background-color: #ffffff; border: 0px; padding: 30px 50px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;In FLEXSPI_ReadBlocking() input from RFDR is&amp;nbsp; 1 word more than caller specifies in 'size' parameter in certain cases.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;In attached image, you can see how 'size' parameter, which specifies transfer size in bytes is divided by 4 then increased by 1.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;So if caller specifies:&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;a) Write 2 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;b)&amp;nbsp;&lt;/SPAN&gt;Write 3 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;c)&amp;nbsp;&lt;/SPAN&gt;Write 4 bytes : 2 words are copied into caller's buffer! (Buffer overflow!)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;d)&amp;nbsp;&lt;/SPAN&gt;Write 5 bytes : 2 words are copied into caller's buffer! (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Ok, as long as caller allocates in word multiples&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Does anyone know why&amp;nbsp;this code does not account for case (c)?&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;&lt;DIV class="" style="background-color: #ffffff; border: 0px;"&gt;&lt;TABLE style="color: #333333; background-color: #ffffff; border: 0px; font-weight: inherit; margin: 0px 0px 20px;"&gt;&lt;TBODY style="border-top: 2px solid #dddddd; border-bottom-width: inherit; border-left-width: inherit; border-right-width: inherit; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-color: inherit; border-left-color: inherit; font-weight: inherit;"&gt;&lt;TR class="" data-configuration-name="MIMXRT1052xxxxB" data-type="SDK" style="border: inherit solid inherit; font-weight: inherit;"&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; border-bottom-width: inherit; border-left-width: inherit; border-right-width: inherit; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-color: inherit; border-left-color: inherit; padding: 20px 8px 8px;"&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fdashboard" rel="nofollow" style="color: #337ab7; background-color: transparent; border: 0px; font-weight: inherit; text-decoration: none; font-size: 16px; margin: 0px 6px 0px 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;MIMXRT1052xxxxB&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fdashboard" rel="nofollow" style="color: #337ab7; background-color: transparent; border: 0px; font-weight: inherit; text-decoration: none; font-size: 16px; margin: 0px 15px 0px 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="" style="color: #ffffff; background-color: #777777; border: 0px; font-weight: bold; font-size: 12px; margin: 0px 0px 0px 8px; padding: 3px 7px;"&gt;NEW&lt;/SPAN&gt;&lt;P class="" style="border: 0px; font-weight: inherit; margin: 6px 0px 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Build Date:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;2018-07-17&lt;/SPAN&gt;,&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Device:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MIMXRT1052xxxxB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;OS:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;Windows&lt;/SPAN&gt;,&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Toolchain:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MCUXpresso IDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Components:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;(None)&lt;/P&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; padding: 4px 0px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;SDK Version:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;KSDK 2.4.1&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;(2018-06-18)&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Chip:&amp;nbsp;MIMXRT1051CVL5B&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Sample code is:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;uint32_t dest[4];&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;flexspi_transfer_t flashXfer;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;flashXfer.deviceAddress = address;&lt;BR /&gt;flashXfer.port = kFLEXSPI_PortA1;&lt;BR /&gt;flashXfer.cmdType = kFLEXSPI_Read;&lt;BR /&gt;flashXfer.SeqNumber = 1u;&lt;BR /&gt;flashXfer.seqIndex = SEQ_IDX_READ_FAST_QUAD;&lt;BR /&gt;flashXfer.data = (uint32_t *)dest;&lt;BR /&gt;flashXfer.dataSize = sizeof(dest);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;FLEXSPI_TransferBlocking(FLEXSPI, &amp;amp;flashXfer)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks!&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Steve&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #51626f; background: #ffffff; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: none; border-left: none; border-right: none; font-size: 14px; padding: 30px 50px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 13:59:17 GMT</pubDate>
    <dc:creator>stephenschwartz</dc:creator>
    <dc:date>2018-07-19T13:59:17Z</dc:date>
    <item>
      <title>FLEXSPI_ReadBlocking() buffer overflow?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831348#M127709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #51626f; background-color: #ffffff; border: 0px; padding: 30px 50px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;In FLEXSPI_ReadBlocking() input from RFDR is&amp;nbsp; 1 word more than caller specifies in 'size' parameter in certain cases.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;In attached image, you can see how 'size' parameter, which specifies transfer size in bytes is divided by 4 then increased by 1.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;So if caller specifies:&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;a) Write 2 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;b)&amp;nbsp;&lt;/SPAN&gt;Write 3 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;c)&amp;nbsp;&lt;/SPAN&gt;Write 4 bytes : 2 words are copied into caller's buffer! (Buffer overflow!)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;d)&amp;nbsp;&lt;/SPAN&gt;Write 5 bytes : 2 words are copied into caller's buffer! (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Ok, as long as caller allocates in word multiples&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Does anyone know why&amp;nbsp;this code does not account for case (c)?&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;/P&gt;&lt;DIV class="" style="background-color: #ffffff; border: 0px;"&gt;&lt;TABLE style="color: #333333; background-color: #ffffff; border: 0px; font-weight: inherit; margin: 0px 0px 20px;"&gt;&lt;TBODY style="border-top: 2px solid #dddddd; border-bottom-width: inherit; border-left-width: inherit; border-right-width: inherit; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-color: inherit; border-left-color: inherit; font-weight: inherit;"&gt;&lt;TR class="" data-configuration-name="MIMXRT1052xxxxB" data-type="SDK" style="border: inherit solid inherit; font-weight: inherit;"&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; border-bottom-width: inherit; border-left-width: inherit; border-right-width: inherit; border-bottom-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-color: inherit; border-left-color: inherit; padding: 20px 8px 8px;"&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fdashboard" rel="nofollow" style="color: #337ab7; background-color: transparent; border: 0px; font-weight: inherit; text-decoration: none; font-size: 16px; margin: 0px 6px 0px 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;MIMXRT1052xxxxB&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fdashboard" rel="nofollow" style="color: #337ab7; background-color: transparent; border: 0px; font-weight: inherit; text-decoration: none; font-size: 16px; margin: 0px 15px 0px 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="" style="color: #ffffff; background-color: #777777; border: 0px; font-weight: bold; font-size: 12px; margin: 0px 0px 0px 8px; padding: 3px 7px;"&gt;NEW&lt;/SPAN&gt;&lt;P class="" style="border: 0px; font-weight: inherit; margin: 6px 0px 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Build Date:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;2018-07-17&lt;/SPAN&gt;,&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Device:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MIMXRT1052xxxxB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;OS:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;Windows&lt;/SPAN&gt;,&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Toolchain:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;MCUXpresso IDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;Components:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;(None)&lt;/P&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; padding: 4px 0px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;SDK Version:&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: 600;"&gt;KSDK 2.4.1&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;(2018-06-18)&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Chip:&amp;nbsp;MIMXRT1051CVL5B&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Sample code is:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;uint32_t dest[4];&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;flexspi_transfer_t flashXfer;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;flashXfer.deviceAddress = address;&lt;BR /&gt;flashXfer.port = kFLEXSPI_PortA1;&lt;BR /&gt;flashXfer.cmdType = kFLEXSPI_Read;&lt;BR /&gt;flashXfer.SeqNumber = 1u;&lt;BR /&gt;flashXfer.seqIndex = SEQ_IDX_READ_FAST_QUAD;&lt;BR /&gt;flashXfer.data = (uint32_t *)dest;&lt;BR /&gt;flashXfer.dataSize = sizeof(dest);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;FLEXSPI_TransferBlocking(FLEXSPI, &amp;amp;flashXfer)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks!&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Steve&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #51626f; background: #ffffff; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: none; border-left: none; border-right: none; font-size: 14px; padding: 30px 50px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831348#M127709</guid>
      <dc:creator>stephenschwartz</dc:creator>
      <dc:date>2018-07-19T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXSPI_ReadBlocking() buffer overflow?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831349#M127710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen Schwartz-Fenwick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this could be a bug in the driver. If size is 4, then 4 / 4 + 1 is 2, reading 2 times RFDR. I think code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;size&lt;SPAN class="number token"&gt;-1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
     &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;buffer&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; base&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;RFDR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
size &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will report this bug, thanks for sharing this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2018 01:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831349#M127710</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-07-28T01:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXSPI_ReadBlocking() buffer overflow?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831350#M127711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below is still wrong:&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; (size / 5 + 1); i++)&lt;/P&gt;&lt;P&gt;Suppose size = 64, actually only reads 52bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should be changed to:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for (i = 0; i &amp;lt; ((size-1) / 4 + 1); i++)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This bug still in sdk 2.5.0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FLEXSPI-ReadBlocking-buffer-overflow/m-p/831350#M127711</guid>
      <dc:creator>Alex_Tsai</dc:creator>
      <dc:date>2019-09-11T07:03:48Z</dc:date>
    </item>
  </channel>
</rss>

