<?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 Re: suspicious code in JPEG Samples for Windows in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885469#M10765</link>
    <description>&lt;P&gt;Oh my goodness! You are absolutely right, that is a bug which should be (and will be) fixed.&lt;/P&gt;
&lt;P&gt;Thanks for catching that!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vladimir&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2007 21:54:13 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2007-01-31T21:54:13Z</dc:date>
    <item>
      <title>suspicious code in JPEG Samples for Windows</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885466#M10762</link>
      <description>&lt;P&gt;I have been working a bit with the IPP JPEG samples.&lt;/P&gt;
&lt;P&gt;Package ID: w_ipp-sample-jpeg_p_5.1.1.001&lt;BR /&gt;Package Contents: Intel IPP JPEG Samples for Windows*&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I noticed the following code in enchtbl.cpp always copies 256 bytes even though the arrays passed to it are less than that length.&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;ippsCopy_8u(vals,m_vals,256);&lt;/P&gt;
&lt;P&gt;By stepping through the code, it's clear that m_vals is getting not just vals copied to it, but the memory following that as well. This does not seem to be causing a problem; although, it might if different compiler options were used.&lt;/P&gt;
&lt;P&gt;I don't need a response to this, thanks.&lt;/P&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 31 Jan 2007 05:36:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885466#M10762</guid>
      <dc:creator>goldfita</dc:creator>
      <dc:date>2007-01-31T05:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: suspicious code in JPEG Samples for Windows</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885467#M10763</link>
      <description>&lt;P&gt;Thank for informing about that. The m_vals is defined in enchtbl.h as an array of 256 Ipp8u, so it should not be overwtitten with copying 256 values into it.&lt;/P&gt;
&lt;P&gt;I'm agree that interface for CJPEGEncoderHuffmanTable::Init() should define the length of input vals and bits. Better if change to something like that&lt;/P&gt;
&lt;P&gt;JERRCODE CJPEGEncoderHuffmanTable::Init(&lt;BR /&gt;int id, int hclass, Ipp8u bits[16], Ipp8u vals[256])&lt;/P&gt;
&lt;P&gt;Number 256 itself is maximum possible number of huffman values. In codec we always allocate memory enough for maximum possible number of values, even if some memory will not be used in real application.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2007 08:02:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885467#M10763</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-01-31T08:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: suspicious code in JPEG Samples for Windows</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885468#M10764</link>
      <description>&lt;P&gt;The problem is vals, not m_vals. Take a look at what is coming into the function (&lt;FONT size="2"&gt;DefaultLuminanceDCValues)&lt;/FONT&gt;.&lt;/P&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;const&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; Ipp8u DefaultLuminanceDCValues[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,0x08, 0x09, 0x0a, 0x0b};&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;The program does not crash because the copy function reads into memory within the program's data space.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2007 19:14:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885468#M10764</guid>
      <dc:creator>goldfita</dc:creator>
      <dc:date>2007-01-31T19:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: suspicious code in JPEG Samples for Windows</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885469#M10765</link>
      <description>&lt;P&gt;Oh my goodness! You are absolutely right, that is a bug which should be (and will be) fixed.&lt;/P&gt;
&lt;P&gt;Thanks for catching that!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2007 21:54:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/suspicious-code-in-JPEG-Samples-for-Windows/m-p/885469#M10765</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-01-31T21:54:13Z</dc:date>
    </item>
  </channel>
</rss>

