Project

General

Profile

バグ #3940

CorbaNaming.cppのポインタ演算

Added by n-ando over 4 years ago.

Status:
新規
Priority:
通常
Assignee:
-
Target version:
-
Start date:
02/10/2017
Due date:
% Done:

0%

Estimated time:

Description

  void CorbaNaming::nameToString(const CosNaming::Name& name,
                                 char* string_name,
                                 CORBA::ULong slen)
  {
    char* s = string_name;
    for (CORBA::ULong i = 0; i < name.length(); ++i)
      {
        // Copy id to string_name
        for (const char* id = name[i].id; *id != '\0'; ++id) // ここがMISRAで Pointer arithmetic is not on array. の指摘が出る

以下の指摘の対処を行う。

  • CorbaNaming.cpp 927 Pointer arithmetic is not on array.
  • CorbaNaming.cpp 937 Pointer arithmetic is not on array.
  • CorbaNaming.cpp 963 Pointer arithmetic is not on array.
  • CorbaNaming.cpp 976 Pointer arithmetic is not on array.

Also available in: Atom PDF