<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openjpeg/src/lib/openjp2/t1.c, branch master-cdist</title>
<subtitle>Fork of openjpeg library for JPEG2000 encoding and decoding</subtitle>
<id>https://git.carlh.net/cgit/openjpeg/atom?h=master-cdist</id>
<link rel='self' href='https://git.carlh.net/cgit/openjpeg/atom?h=master-cdist'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/'/>
<updated>2019-03-29T10:17:39Z</updated>
<entry>
<title>opj_t1_encode_cblks: fix UBSAN signed integer overflow</title>
<updated>2019-03-29T10:17:39Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2019-03-29T10:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=a1d32a596a94280178c44a55d7e7f1acd992ed5d'/>
<id>urn:sha1:a1d32a596a94280178c44a55d7e7f1acd992ed5d</id>
<content type='text'>
Fixes #1053 / CVE-2018-5727

Note: I don't consider this issue to be a security vulnerability, in
practice.
At least with gcc or clang compilers on x86_64 which generate the same
assembly code with or without that fix.
</content>
</entry>
<entry>
<title>Fix some potential overflow issues (#1161)</title>
<updated>2018-10-31T19:44:30Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2018-10-31T19:44:30Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=948332e6ed17565100d1df5f6fdbf66865218e36'/>
<id>urn:sha1:948332e6ed17565100d1df5f6fdbf66865218e36</id>
<content type='text'>
* Fix some potential overflow issues

Put sizeof to the beginning of the multiplication to enforce that
size_t instead of smaller integer types is used for the calculation.

This fixes warnings from LGTM:

    Multiplication result may overflow 'unsigned int'
    before it is converted to 'unsigned long'.

It also allows removing some type casts.

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;

* Fix code indentation

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Workaround Coverity CID 169392</title>
<updated>2017-09-21T12:10:49Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-21T12:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=7711307d865d46ca1bb8bb152071178b10066d05'/>
<id>urn:sha1:7711307d865d46ca1bb8bb152071178b10066d05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid relying on operator precedence (raised by cppcheck)</title>
<updated>2017-09-19T16:35:52Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-19T16:35:52Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=8df07d5866c9e3517bf04a7abee4a07a04735df4'/>
<id>urn:sha1:8df07d5866c9e3517bf04a7abee4a07a04735df4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix warnings and errors when compiling with a c++ compiler (#1021)</title>
<updated>2017-09-19T10:46:20Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-19T10:46:20Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=fdef69b43ce5222ac0f2a87f2fad1442ece340e8'/>
<id>urn:sha1:fdef69b43ce5222ac0f2a87f2fad1442ece340e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace uses of size_t by OPJ_SIZE_T</title>
<updated>2017-09-04T15:35:52Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-04T15:35:52Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=579b8937eae7e6b6868b8b5c6286a742c10a5130'/>
<id>urn:sha1:579b8937eae7e6b6868b8b5c6286a742c10a5130</id>
<content type='text'>
</content>
</entry>
<entry>
<title>opj_t1_clbl_decode_processor(): use SSE2 in subtile decoding code path, for irreversible</title>
<updated>2017-09-01T20:23:29Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-01T19:17:26Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=4c7effa6bc37beb2a8e2f29ecf5845cde93f6b88'/>
<id>urn:sha1:4c7effa6bc37beb2a8e2f29ecf5845cde93f6b88</id>
<content type='text'>
</content>
</entry>
<entry>
<title>opj_t1_decode_cblk(): move some code to codeblock processor for (theoretical) better multi-threading in subtile decoding</title>
<updated>2017-09-01T20:23:29Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-01T14:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=559d16e8f43a0cd090d217d7d111820989299b85'/>
<id>urn:sha1:559d16e8f43a0cd090d217d7d111820989299b85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tiny perf improvement in T1 stage for subtile decoding</title>
<updated>2017-09-01T14:30:58Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-01T14:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=ccac773556070ede24ea3dfbdec47c2b3c5be5c4'/>
<id>urn:sha1:ccac773556070ede24ea3dfbdec47c2b3c5be5c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow several repeated calls to opj_set_decode_area() and opj_decode() for single-tiled images</title>
<updated>2017-09-01T14:30:48Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-01T14:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=0ae3cba3404674bbe2028ea9a801301a4c951b33'/>
<id>urn:sha1:0ae3cba3404674bbe2028ea9a801301a4c951b33</id>
<content type='text'>
* Only works for single-tiled images --&gt; will error out cleanly, as currently
  in other cases
* Save re-reading the codestream for the tile, and re-use code-blocks of the
  previous decoding pass.
* Future improvements might involve improving opj_decompress, and the image writing logic,
  to use this strategy.
</content>
</entry>
</feed>
