Description
void QSafeString::set(const qchar * const strArg, const size_t lengthArg) function requires nullptr check for the strArg. Currently std::copy will be called for strArg without nullptr check and that can lead to unexpected behavior.
Also, lengthArg should be checked for zero, and do just a reset to the m_data instead of set if the length is 0.
Attachments
For Gerrit Dashboard: QSR-2812 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
643514,3 | Add nullptr and length check to QSafeString::set | dev | tqtc-boot2qt/qtsaferenderer-runtime | Status: MERGED | +2 | +1 |