Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam

Webinar: Evaluation - 05.12

>
>
>
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;
}