<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 17: Bug report of program djpeg</title><link href="https://sourceforge.net/p/libjpeg/bugs/17/" rel="alternate"/><link href="https://sourceforge.net/p/libjpeg/bugs/17/feed.atom" rel="self"/><id>https://sourceforge.net/p/libjpeg/bugs/17/</id><updated>2022-09-11T15:43:37.318000Z</updated><subtitle>Recent changes to 17: Bug report of program djpeg</subtitle><entry><title>#17 Bug report of program djpeg</title><link href="https://sourceforge.net/p/libjpeg/bugs/17/?limit=25#f983" rel="alternate"/><published>2022-09-11T15:43:37.318000Z</published><updated>2022-09-11T15:43:37.318000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net891fded3405f7aaa101e0848f3967bde38480110</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please could you double check the file you've attached?  It looks like a tiff file?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug report of program djpeg</title><link href="https://sourceforge.net/p/libjpeg/bugs/17/" rel="alternate"/><published>2022-08-15T12:36:32.712000Z</published><updated>2022-08-15T12:36:32.712000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net7989b91f1c2376ad83335f5081d7a00764d6c7e9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Bug Description:&lt;br/&gt;
When executing djpeg (newest release version) ,  the program terminates with Nonfatal Error shown below.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;Corrupt JPEG data: 2 extraneous bytes before marker 0xc1
P6
227 9
255
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then I apply MSan (Memory Sanitizer ) to check for memory errors and the error report is as follows.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;==83120==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x4bd5e0 in h2v2_merged_upsample /jpeg-9c/jdmerge.c:380:26
    #1 0x4bca17 in merged_2v_upsample /jpeg-9c/jdmerge.c:228:5
    #2 0x4f0e26 in process_data_simple_main /jpeg-9c/jdmainct.c:366:3
    #3 0x4a3b7f in jpeg_read_scanlines /jpeg-9c/jdapistd.c:174:3
    #4 0x4947a1 in main /jpeg-9c/djpeg.c:589:21
    #5 0x7fba0e279c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
    #6 0x41b599 in _start (/djpeg/djpeg_msan+0x41b599)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /jpeg-9c/jdmerge.c:380:26 in h2v2_merged_upsample
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Step to Reproduce&lt;br/&gt;
download the libjpeg from github and build it with MSAN&lt;br/&gt;
Execute djpeg with given testcases&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>