Fix for CVE-2017-14860
A heap buffer overflow could occur in memcpy when icc.size_ is larger than data.size_ - pad, as then memcpy would read out of bounds of data. This commit adds a sanity check to iccLength (= icc.size_): if it is larger than data.size_ - pad (i.e. an overflow would be caused) an exception is thrown. This fixes #71.v0.27.3
parent
65f45a3505
commit
ff18fec24b
Loading…
Reference in New Issue