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