mm2 / Little-CMS

A free, open source, CMM engine. It provides fast transforms between ICC profiles.
https://www.littlecms.com
MIT License
571 stars 176 forks source link

make MLUgetWide() avoid unintentional memmove #415

Closed x2018 closed 1 year ago

x2018 commented 1 year ago

Hi, this fix a potential bug to avoid unintentional memmove. We should regard any BufferSize < sizeof(wchar_t) as invalid, so to ensure the clipped StrLen is fine.