Examples of errors detected by the V681 diagnostic

V681. The language standard does not define an order in which the 'Foo' functions will be called during evaluation of arguments.


Wine Is Not an Emulator

V681 The language standard does not define an order in which the 'tlb_read_byte' functions will be called during evaluation of arguments. tlb.c 650


static BOOL dump_msft_custdata(seg_t *seg)
{
  ....
  printf("\\%2.2x \\%2.2x\n", tlb_read_byte(), tlb_read_byte());
  ....
}

Android

V681 CWE-758 The language standard does not define an order in which the 'readSigned' functions will be called during evaluation of arguments. ComposerClient.cpp 836


bool ComposerClient::CommandReader::parseSetLayerCursorPosition(uint16_t length)
{
  if (length != CommandWriterBase::kSetLayerCursorPositionLength) {
    return false;
  }

  auto err =
    mHal.setLayerCursorPosition(mDisplay, mLayer,
                                readSigned(), readSigned());
  if (err != Error::NONE) {
    mWriter.setError(getCommandLoc(), err);
  }

  return true;
}


Bugs Found

Checked Projects
410
Collected Errors
14 111
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept