Fix buffer overrun in clutstore.cc

This commit is contained in:
heckflosse
2016-05-03 20:50:45 +02:00
parent 5e0a859cea
commit 9622bbc2ba

View File

@@ -56,7 +56,7 @@ bool loadFile(
img_src.convertColorSpace(img_float.get(), icm, curr_wb);
}
AlignedBuffer<std::uint16_t> image(fw * fh * 4 + 1);
AlignedBuffer<std::uint16_t> image(fw * fh * 4 + 4);
std::size_t index = 0;