<?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 Jpeg decoder is crashing in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779564#M1458</link>
    <description>Hi Eugene,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Could you specify exactlty what sample you use and how?&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; djpeg -bmp test.jpg test.bmp  ?&lt;/DIV&gt;&lt;DIV&gt;or, other command?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Sergey&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Apr 2012 15:53:20 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2012-04-04T15:53:20Z</dc:date>
    <item>
      <title>Jpeg decoder is crashing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779563#M1457</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Im testing IPP Jpeg decoder from the latest available samples with the latest IPP libs. &lt;BR /&gt;&lt;BR /&gt;X86 version is crashing on some images when I change INPUT_BUF_SIZE to something different from the default value. I have a large number of test images and it looks like crashing jpeg depends on input buffer size.&lt;BR /&gt;&lt;BR /&gt;X64 version is crashing always, even with the default buffer value. I could not tune buffer size to read all my jpegs.&lt;BR /&gt;&lt;BR /&gt;The problem can be reproduced with djpeg application from samples with changing the following value:&lt;BR /&gt;[cpp]#define INPUT_BUF_SIZE  100096   [/cpp] &lt;BR /&gt;&lt;BR /&gt;Im getting access violation in jdhuff.c:1001 when memmove tries to use overflowed value as data size.&lt;BR /&gt;&lt;BR /&gt;[cpp] /* Decode a single block's worth of coefficients */  
          if(state.ipp_need_update == 1)  
          {  
            // fails here  
            memmove(state.ipp_buffer,  
                    state.ipp_buffer + state.ipp_bytes_decoded,  
                    state.ipp_bytes_in_buffer - state.ipp_bytes_decoded);  
      
            state.ipp_bytes_in_buffer = state.ipp_bytes_in_buffer -   
                                        state.ipp_bytes_decoded -   
                                        ipp_bytes_left -   
                                        state.sync_shift;  
    //...  [/cpp] &lt;BR /&gt;&lt;BR /&gt;Im attaching crashing jpeg for x86 version. &lt;BR /&gt;&lt;BR /&gt;My configuration:&lt;BR /&gt;&lt;BR /&gt;Windows 7 x64&lt;BR /&gt;IPP version: 7.0.6.300&lt;BR /&gt;w_ipp-samples_p_7.0.6.060 &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Eugene&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2012 04:12:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779563#M1457</guid>
      <dc:creator>Eugene1</dc:creator>
      <dc:date>2012-04-03T04:12:42Z</dc:date>
    </item>
    <item>
      <title>Jpeg decoder is crashing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779564#M1458</link>
      <description>Hi Eugene,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Could you specify exactlty what sample you use and how?&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; djpeg -bmp test.jpg test.bmp  ?&lt;/DIV&gt;&lt;DIV&gt;or, other command?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Sergey&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Apr 2012 15:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779564#M1458</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-04-04T15:53:20Z</dc:date>
    </item>
    <item>
      <title>Jpeg decoder is crashing</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779565#M1459</link>
      <description>Hi Sergey,&lt;BR /&gt;&lt;BR /&gt;Thanks for your attention.&lt;BR /&gt;&lt;BR /&gt;Im using djpeg as you wrote without additional commands:&lt;BR /&gt;&lt;BR /&gt;djpeg.exe -bmp C:\temp\1233\picccszk_CL.jpg C:\temp\1233\out.bmp&lt;BR /&gt;&lt;BR /&gt;It works great with default INPUT_BUF_SIZE, but fails when I set it to 100096 and try to read the attached JPEG. &lt;BR /&gt;&lt;BR /&gt;When I change INPUT_BUF_SIZE constant to something other than 100096, failing jpeg file is changing too. &lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Eugene&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:07:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Jpeg-decoder-is-crashing/m-p/779565#M1459</guid>
      <dc:creator>Eugene1</dc:creator>
      <dc:date>2012-04-05T04:07:07Z</dc:date>
    </item>
  </channel>
</rss>

