QVariant, Buffer Overrun

时间:2018-02-03 09:22:16

标签: c++ qt static-analysis

While running static analysis tool. I'm getting Buffer Overrun

Buffer Overrun This code reads past the end of the buffer pointed to by the return value. the return value evaluates to &#unnamed.dResourceImpl.cpp:170. The code reads 16 bytes starting at the beginning of the buffer pointed to by the return value, whose capacity is 4 bytes. The number of bytes read exceeds the number of allocated bytes. The overrun occurs in stack memory. The issue can occur if the highlighted code executes.

QVariant ResourceImpl::getProperty(QString propertyName)
{
    return ResourceBase::getProperty(propertyName);
}

// In ResourceBase   getProperty(QString propertyName)  declare
virtual QVariant getProperty(QString propertyName);

0 个答案:

没有答案