metrica
Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
close form

Заполните форму в два простых шага ниже:

Ваши контактные данные:

Шаг 1
Поздравляем! У вас есть промокод!

Тип желаемой лицензии:

Шаг 2
Team license
Enterprise license
** Нажимая на кнопку, вы даете согласие на обработку
своих персональных данных. См. Политику конфиденциальности
close form
Запросите информацию о ценах
Новая лицензия
Продление лицензии
--Выберите валюту--
USD
EUR
RUB
* Нажимая на кнопку, вы даете согласие на обработку
своих персональных данных. См. Политику конфиденциальности

close form
Бесплатная лицензия PVS‑Studio для специалистов Microsoft MVP
* Нажимая на кнопку, вы даете согласие на обработку
своих персональных данных. См. Политику конфиденциальности

close form
Для получения лицензии для вашего открытого
проекта заполните, пожалуйста, эту форму
* Нажимая на кнопку, вы даете согласие на обработку
своих персональных данных. См. Политику конфиденциальности

close form
Мне интересно попробовать плагин на:
* Нажимая на кнопку, вы даете согласие на обработку
своих персональных данных. См. Политику конфиденциальности

close form
check circle
Ваше сообщение отправлено.

Мы ответим вам на


Если вы так и не получили ответ, пожалуйста, проверьте папку
Spam/Junk и нажмите на письме кнопку "Не спам".
Так Вы не пропустите ответы от нашей команды.

Вебинар: Трудности при интеграции SAST, как с ними справляться - 04.04

>
>
>
Примеры ошибок, обнаруженных с помощью …

Примеры ошибок, обнаруженных с помощью диагностики V620

V620. Expression of sizeof(T)*N kind is summed up with pointer to T type. Consider inspecting the expression.


Apache Xerces Project

V620 It's unusual that the expression of sizeof(T) kind is being subtracted from the pointer to T type. domnormalizer.cpp 277


const XMLCh *DOMNormalizer::integerToXMLCh(unsigned int i) const
{
  XMLCh *buf = (XMLCh*)
               fMemoryManager->allocate(15 * sizeof(XMLCh));
  XMLCh *pos = buf + sizeof(buf) - sizeof(XMLCh);
  ....
}

Snes9x

V620 It's unusual that the expression of sizeof(T) kind is being summed with the pointer to T type. wsnes9x.cpp 6145


typedef wchar_t TCHAR;

INT_PTR CALLBACK DlgOpenROMProc(....)
{
  ....
  TCHAR *tmp, *tmp2;
  ....
  while(tmp2=_tcsstr(tmp, TEXT("\\")))
    tmp=tmp2+sizeof(TCHAR);
  ....
}

Most likely this is what should be written here: tmp=tmp2+1;


Miranda NG

V620 It's unusual that the expression of sizeof(T)*N kind is being summed with the pointer to T type. Scriver input.cpp 387


BOOL HandleLinkClick(....)
{
  ....
  MoveMemory(tr.lpstrText + sizeof(TCHAR)* 7,
             tr.lpstrText,
             sizeof(TCHAR)*(tr.chrg.cpMax - tr.chrg.cpMin + 1));
  ....
}

Similar errors can be found in some other places:

  • V620 It's unusual that the expression of sizeof(T)*N kind is being summed with the pointer to T type. UInfoEx ctrl_edit.cpp 351

Chromium

V620 It's unusual that the expression of sizeof(T)*N kind is being summed with the pointer to T type. string_conversion.cc 62


int UTF8ToUTF16Char(const char *in,
                    int in_length,
                    uint16_t out[2])
{
  const UTF8 *source_ptr = reinterpret_cast<const UTF8 *>(in);
  const UTF8 *source_end_ptr = source_ptr + sizeof(char);
  uint16_t *target_ptr = out;
  uint16_t *target_end_ptr =
    target_ptr + 2 * sizeof(uint16_t); // <=
  out[0] = out[1] = 0;
  ....
}

Similar errors can be found in some other places:

  • V620 It's unusual that the expression of sizeof(T)*N kind is being summed with the pointer to T type. string_conversion.cc 106