<?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 Buffer overrun in ippiFilterRow? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Buffer-overrun-in-ippiFilterRow/m-p/915185#M14976</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When I call the ippiFilterRow function with small arrays, more memory is being modified than the dimensions specified in the ROI. An example is shown below.The bug happens whenlen&amp;lt;=10 in the following code. For len&amp;gt;=11, it works allright.&lt;/P&gt;&lt;PRE&gt; const int len = 7;&lt;BR /&gt;float pSrc[len];// Using a vector of dimensions len x 1&lt;BR /&gt;float pDst[2*len] = {0};// Zero the destination&lt;/PRE&gt;&lt;PRE&gt;for(int i=0; i&lt;LEN&gt; = i*i;// Fill the source&lt;/LEN&gt;&lt;/PRE&gt;&lt;PRE&gt;const int filterLen = 3;&lt;BR /&gt;float filter[filterLen] = {0.5, 0, -0.5};&lt;BR /&gt;int filterAnchor = 1;&lt;/PRE&gt;&lt;PRE&gt;IppStatus ippiReturnStatus;&lt;BR /&gt;IppiSize roiSize;&lt;/PRE&gt;&lt;PRE&gt;// Should modify only (len-2)x1 elements in the destination.&lt;BR /&gt; // pSrc+1 and len-2 is for handling the border pixels correctly.&lt;BR /&gt; roiSize.width=len-2; roiSize.height=1;&lt;BR /&gt;ippiReturnStatus = ippiFilterRow_32f_C1R( pSrc+1, len*sizeof(float), pDst+1, len*sizeof(float), roiSize, filter, filterLen, filterAnchor);&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Platform: Windows XP with Visual Studio 6 and IPP 4.1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Please let me know if I am missing something in the above code.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Times New Roman"&gt;Is this a known bug, and are there any fixes for it? (I tried searching for this problem, but didnt find anything).&lt;BR /&gt;(Also, updating to IPP 5.1 is not an option at the moment, though it would help to know if the bug is fixed in 5.1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Anup Mantri&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2006 01:42:38 GMT</pubDate>
    <dc:creator>amantri</dc:creator>
    <dc:date>2006-07-28T01:42:38Z</dc:date>
    <item>
      <title>Buffer overrun in ippiFilterRow?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Buffer-overrun-in-ippiFilterRow/m-p/915185#M14976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When I call the ippiFilterRow function with small arrays, more memory is being modified than the dimensions specified in the ROI. An example is shown below.The bug happens whenlen&amp;lt;=10 in the following code. For len&amp;gt;=11, it works allright.&lt;/P&gt;&lt;PRE&gt; const int len = 7;&lt;BR /&gt;float pSrc[len];// Using a vector of dimensions len x 1&lt;BR /&gt;float pDst[2*len] = {0};// Zero the destination&lt;/PRE&gt;&lt;PRE&gt;for(int i=0; i&lt;LEN&gt; = i*i;// Fill the source&lt;/LEN&gt;&lt;/PRE&gt;&lt;PRE&gt;const int filterLen = 3;&lt;BR /&gt;float filter[filterLen] = {0.5, 0, -0.5};&lt;BR /&gt;int filterAnchor = 1;&lt;/PRE&gt;&lt;PRE&gt;IppStatus ippiReturnStatus;&lt;BR /&gt;IppiSize roiSize;&lt;/PRE&gt;&lt;PRE&gt;// Should modify only (len-2)x1 elements in the destination.&lt;BR /&gt; // pSrc+1 and len-2 is for handling the border pixels correctly.&lt;BR /&gt; roiSize.width=len-2; roiSize.height=1;&lt;BR /&gt;ippiReturnStatus = ippiFilterRow_32f_C1R( pSrc+1, len*sizeof(float), pDst+1, len*sizeof(float), roiSize, filter, filterLen, filterAnchor);&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Platform: Windows XP with Visual Studio 6 and IPP 4.1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Please let me know if I am missing something in the above code.&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Times New Roman"&gt;Is this a known bug, and are there any fixes for it? (I tried searching for this problem, but didnt find anything).&lt;BR /&gt;(Also, updating to IPP 5.1 is not an option at the moment, though it would help to know if the bug is fixed in 5.1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Anup Mantri&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2006 01:42:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Buffer-overrun-in-ippiFilterRow/m-p/915185#M14976</guid>
      <dc:creator>amantri</dc:creator>
      <dc:date>2006-07-28T01:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer overrun in ippiFilterRow?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Buffer-overrun-in-ippiFilterRow/m-p/915186#M14977</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;FONT face="Arial" size="2"&gt;Hi Anup,&lt;BR /&gt;There is one known bug on IPP5.1 with ippiFilterRow_32f_C1R. We fixed on IPP5.0. so could you help to check with latest IPP release?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Arial" size="2"&gt;Regards,&lt;BR /&gt;Chao &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2006 11:19:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Buffer-overrun-in-ippiFilterRow/m-p/915186#M14977</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2006-07-31T11:19:34Z</dc:date>
    </item>
  </channel>
</rss>

