mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 02:11:36 +08:00
Coverity fix 1325169
This commit is contained in:
@@ -521,6 +521,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl<T, ArrayMode, MaxSize_>
|
|||||||
{
|
{
|
||||||
return res_sz;
|
return res_sz;
|
||||||
}
|
}
|
||||||
|
// coverity[result_independent_of_operands]
|
||||||
if (static_cast<unsigned>(sz) > MaxSize_) // False 'type-limits' warning occurs here
|
if (static_cast<unsigned>(sz) > MaxSize_) // False 'type-limits' warning occurs here
|
||||||
{
|
{
|
||||||
return -ErrInvalidMarshalData;
|
return -ErrInvalidMarshalData;
|
||||||
|
|||||||
Reference in New Issue
Block a user