Unicorn with delicious cookie
Nous utilisons des cookies pour améliorer votre expérience de navigation. En savoir plus
Accepter
to the top
>
>
>
Examples of errors detected by the V607…

Examples of errors detected by the V607 diagnostic

V607. Ownerless expression 'Foo'.


IPP Samples

V607 Ownerless expression 'state->com.m_channel_number'. aac_dec aac_dec_api_fp.c 1404


AACStatus bsacdecSetNumChannels(Ipp32s channelConfiguration,
                                AACDec *state)
{
  state->com.m_channel_number = channelConfiguration;
  if (channelConfiguration == 7) {
    state->com.m_channel_number;    // <=
  }

  return AAC_OK;
}

Trans-Proteomic Pipeline

V607 Ownerless expression '* iLenSeq'. Comet_fastadb comet-fastadb1.cxx 2241


void TRANSLATE(int iFrame,
      char *szNewSeq,
      char *szSeq,
      int  *iLenSeq)
{
  ....
  *iLenSeq;
}

Windows 8 Driver Samples

V607 Ownerless expression 'pDevExt->WdfDevice'. uart16550pc.cpp 58


NTSTATUS
UartInitContext(_In_ WDFDEVICE Device)
{
  ....
  pDevExt->WdfDevice;
  ....
}

TortoiseSVN

V607 Ownerless expression 'app.hwndTT'. tortoiseblame.cpp 1782


BOOL InitInstance(HINSTANCE hResource, int nCmdShow)
{
  ....
  app.hwndTT; // handle to the ToolTip control
  ....
}

Boost (C++ libraries)

V607 Ownerless expression 'duration_style_ == style'. base_formatter.hpp 51


void set_duration_style(duration_style style)
{
  duration_style_ == style;
}

Trans-Proteomic Pipeline

V607 Ownerless expression 'done_[charge]'. mixturemodel.cxx 1558


Boolean MixtureModel::iterate(int counter) {
  ....
  if (done_[charge] < 0) {
    done_[charge];
  }
  else if (priors_[charge] > 0.0) {
    done_[charge] += extraitrs_;
  }
  ....
}

CryEngine 3 SDK

V607 Ownerless expression 'insertResult.first->second.m_entityId'. persistantstats.cpp 4814


CPersistantStats::SEnemyTeamMemberInfo *
CPersistantStats::GetEnemyTeamMemberInfo(EntityId inEntityId)
{
  ....
  insertResult.first->second.m_entityId;
  ....
}

Similar errors can be found in some other places:

  • V607 Ownerless expression 'initialState.weapon.weaponId'. recordingsystem.cpp 2671

Eigen

V607 Ownerless expression 'v1[0]'. miscmatrices.cpp 28


template<typename MatrixType> void miscMatrices(
  const MatrixType& m)
{
  ....
  VectorType v1 = VectorType::Random(rows);
  v1[0];
  ....
}

Unreal Engine 4

V607 Ownerless expression 'NumByteProperties'. codegenerator.cpp 633


void FNativeClassHeaderGenerator::ExportProperties(....)
{
  ....
  int32 NumByteProperties = 0;
  ....
  if (bIsByteProperty)
  {
    NumByteProperties;
  }
  ....
}

Miranda NG

V607 Ownerless expression 'ccs->wParam'. MirOTR svcs_proto.cpp 103


INT_PTR SVC_OTRSendMessage(WPARAM wParam,LPARAM lParam){
  ....
  CCSDATA *ccs = (CCSDATA *) lParam;
  ....
  if (otr_context_get_trust(context) >= TRUST_UNVERIFIED)
    ccs->wParam;
  ....
}

Similar errors can be found in some other places:

  • V607 Ownerless expression 'm_hDDIcon'. HistoryStats bandctrlimpl.cpp 226

Godot Engine

V607 Ownerless expression 'm_angularLimits[p_axis].m_limitSoftness'. generic_6dof_joint_sw.cpp 539


void Generic6DOFJointSW::set_param(....)
{
  ERR_FAIL_INDEX(p_axis,3);
  switch(p_param)
  {
    case PhysicsServer::G6DOF_JOINT_LINEAR_LOWER_LIMIT:
    {
      m_linearLimits.m_lowerLimit[p_axis]=p_value;
    } break;
    case PhysicsServer::G6DOF_JOINT_LINEAR_UPPER_LIMIT:
    {
      m_linearLimits.m_upperLimit[p_axis]=p_value;
    } break;
    ....
    case PhysicsServer::G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS:
    {
      m_angularLimits[p_axis].m_limitSoftness;  // <=
    } break;
    case PhysicsServer::G6DOF_JOINT_ANGULAR_DAMPING:
    {
      m_angularLimits[p_axis].m_damping=p_value;
    } break;
    ....
  }
}

Godot Engine

V607 Ownerless expression 'ie.action.pressed'. variant_op.cpp 2410


Variant Variant::get(const Variant& p_index, bool *r_valid) const
{
  ....
  if (ie.type == InputEvent::ACTION)
  {
    if (str =="action")
    {
      valid=true;
      return ie.action.action;
    }
    else if (str == "pressed")
    {
      valid=true;
      ie.action.pressed;  // <=
    }
  }
  ....
}

Serious Engine 1 v.1.10

V607 Ownerless expression 'pdecDLLClass->dec_ctProperties'. entityproperties.cpp 107


void CEntity::ReadProperties_t(CTStream &istrm) // throw char *
{
  ....
  CDLLEntityClass *pdecDLLClass = en_pecClass->ec_pdecDLLClass;
  ....
  // for all saved properties
  for(INDEX iProperty=0; iProperty<ctProperties; iProperty++) {
    pdecDLLClass->dec_ctProperties;  // <=
    ....
  }
  ....
}

System Shock

V607 Ownerless expression 'i > 0'. TMAP.C 221


int do_tmap_tile(....)
{
  ....
  for (i=nverts; i--; i>0)
  {
    ....
  }
  ....
}

System Shock

V607 Ownerless expression 'i >= 0'. INTERP.C 366


void g3_interpret_object(....)
{
  for (i=N_RES_POINTS-1; i--; i>=0)
  {
    ....;
  }
  ....
}

Similar errors can be found in some other places:

  • V607 Ownerless expression 'i > 0'. TMAP.C 532
  • V607 Ownerless expression 'i > 0'. POLYGON.C 77
  • V607 Ownerless expression 'i > 0'. POLYGON.C 268

Azure Service Fabric

V607 CWE-482 Ownerless expression. EnvironmentOverrideDescription.cpp 60


bool EnvironmentOverridesDescription::operator == (....) const
{
  bool equals = true;
  for (auto i = 0; i < EnvironmentVariables.size(); i++)
  {
    equals = EnvironmentVariables[i] ==
             other.EnvironmentVariables[i];
    if (!equals) { return equals; }
  }
  this->CodePackageRef == other.CodePackageRef; // <=
  if (!equals) { return equals; }
  return equals;
}
equals = this->CodePackageRef == other.CodePackageRef;
if (!equals) { return equals; }

Captain Blood

V607 Ownerless expression 'isSetPause ? 1 : 0'. SoundsEngine.cpp 741


void SoundsEngine::SetPause(bool isSetPause)
{
  //....
  isSetPause ? 1 : 0;
  //....
}

Microsoft PowerToys

V607 Ownerless expression 'capturedScreenTexture->view.pixels'. MeasureToolOverlayUI.cpp 35


winrt::com_ptr<ID2D1Bitmap> ConvertID3D11Texture2DToD2D1Bitmap(....)
{
  capturedScreenTexture->view.pixels;
  ....
}

GZDoom

V607 Ownerless expression 'GPalette.BaseColors[k]'. d_main.cpp 762


class PaletteContainer
{
public:
  PalEntry BaseColors[256]; // non-gamma corrected palette
  ....
};

static void DrawPaletteTester(int paletteno)
{
  ....
  for (int i = 0; i < 16; ++i)
  {
    for (int j = 0; j < 16; ++j)
    {
      PalEntry pe;
      if (t > 1)
      {
        auto palette = GPalette.GetTranslation(TRANSLATION_Standard,
                                               t - 2)->Palette;
        pe = palette[k];
      }
      else GPalette.BaseColors[k];                     // <=
      ....
    }
    ....
  }
  ....
}

Qt Creator

V607 Ownerless expression 'QRectF { 0, 0, 640, 480 }'. quickitemnodeinstance.cpp 592


QRectF QuickItemNodeInstance::boundingRectWithStepChilds(
  QQuickItem *parentItem) const
{
  QRectF boundingRect = parentItem->boundingRect();

  boundingRect = boundingRect.united(QRectF(QPointF(0, 0), size()));

  for (QQuickItem *childItem : parentItem->childItems())
  {
    ....
  }

  if (boundingRect.isEmpty())
    QRectF{0, 0, 640, 480};    // <=

  return boundingRect;
}

Nau Engine

V607 Ownerless expression 'void ()'. thread_pool_executor.cpp 60


class ThreadPoolExecutor final : public Executor,
                                 public IRuntimeComponent
{
public:
  ThreadPoolExecutor(std::optional<size_t> threadsCount)
  {
    const size_t maxThreads = threadsCount ? *threadsCount
                                           : getDefaultThreadsCount();
    m_threads.reserve(maxThreads);

    for (size_t i = 0; i < maxThreads; ++i)
    {
      m_threads.emplace_back([](ThreadPoolExecutor& executor,
                                size_t threadIndex)
      {
        threading::setThisThreadName(
          std::format("Nau Pool-{}", threadIndex + 1)
        );
        executor.threadWork();
      }, std::ref(*this), i);
    }

    RuntimeObjectRegistration{nau::Ptr<>{this}}.setAutoRemove();
    void();
  }
  ....
};

close form

Remplissez le formulaire ci‑dessous en 2 étapes simples :

Vos coordonnées :

Étape 1
Félicitations ! Voici votre code promo !

Type de licence souhaité :

Étape 2
Team license
Enterprise licence
** En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité
close form
Demandez des tarifs
Nouvelle licence
Renouvellement de licence
--Sélectionnez la devise--
USD
EUR
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
La licence PVS‑Studio gratuit pour les spécialistes Microsoft MVP
close form
Pour obtenir la licence de votre projet open source, s’il vous plait rempliez ce formulaire
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
I want to join the test
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
check circle
Votre message a été envoyé.

Nous vous répondrons à


Si l'e-mail n'apparaît pas dans votre boîte de réception, recherchez-le dans l'un des dossiers suivants:

  • Promotion
  • Notifications
  • Spam