hughsie / colord

Making color management just work
GNU General Public License v2.0
75 stars 51 forks source link

lib: pass a correct tag size to cmsReadRawTag #148

Closed xry111 closed 1 year ago

xry111 commented 1 year ago

Since lcms-2.14, the cmsReadRawTag will not fill the buffer if the buffer size is smaller than expected 1. It causes cd-iccdump to segfault, and the test colord-test-private to fail.

Allocate a buffer with correct size and pass it to cmsReadRawTag to fix the issue.

Fixes #147.

xry111 commented 1 year ago

Closing, as it should be resolved by https://github.com/mm2/Little-CMS/commit/93629504f8175e0002af1c094707a76ae3f97f0f.