LGTM.com - false positive Multiplication result may overflow 'int' before it is converted to 'size_t'.
Đang mở
C++
false-positive
- Ngôn ngữ chính
- CodeQL
- Star
- 10.1k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 141
Mô tả
It doesn't seem to understand bounds checking before conversion, or that the value returns with the thrown exception I guess:
https://lgtm.com/projects/g/sandsmark/genieutils/snapshot/83dc9ec17bc36ac8f77bbbf82fae9ffbbd6ceeca/files/src/resource/SmxFrame.cpp?sort=name&dir=ASC&mode=heatmap#L145
y is checked right before, m_normalHeader.width is checked before the loop (line 116).
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.