fix buffer overflow issue in multichannel.cpp

metadata
Wenzel Jakob 2014-05-23 02:19:56 +02:00
parent b7d8988b7f
commit b499ef8772
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public:
block->clear();
uint32_t queryType = RadianceQueryRecord::ESensorRay;
Float *temp = (Float *) alloca(sizeof(Float) * (m_integrators.size() * SPECTRUM_SAMPLES + 1));
Float *temp = (Float *) alloca(sizeof(Float) * (m_integrators.size() * SPECTRUM_SAMPLES + 2));
for (size_t i = 0; i<points.size(); ++i) {
Point2i offset = Point2i(points[i]) + Vector2i(block->getOffset());