[Molds-dev] [molds] #30083: Avoid overflow of "int" in the "MallocerFrrer"

Back to archive index

SourceForge Ticket System norep****@sourc*****
2012年 11月 13日 (火) 12:26:42 JST


#30083: Avoid overflow of "int" in the "MallocerFrrer"

  Open Date: 2012-11-13 12:26
Last Update: 2012-11-13 12:26

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=30083
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=30083

---------------------------------------------------------------------

Last Changes/Comment for this Ticket:
2012-11-13 12:26 Update by: mikiya_fujii

 * New Ticket "Avoid overflow of "int" in the "MallocerFrrer"" created

---------------------------------------------------------------------
Ticket Status:

      Reporter: mikiya_fujii
         Owner: mikiya_fujii
          Type: パッチ
        Status: オープン
      Priority: 6
     MileStone: ver0.2
     Component: (未割り当て)
      Severity: 6
    Resolution: なし
---------------------------------------------------------------------

Ticket details:

1)Type of arguments for size of array is modified to size_t from int
2)To avoid overflow, way to calculate "requiredMalloc" is modified to 
  double requiredMalloc = static_cast<double>(size1);
                         *static_cast<double>(size2);
                         *static_cast<double>(sizeof(T));
3)To check the amount of allocated heap in more detail, variables for address should be counted in the "requiredMalloc"

-- 
This is Ticket on Project MolDS.
MolDS Project hosted on SourceForge.JP.

Project URL: http://sourceforge.jp/projects/molds
SourceForge.JP: http://sourceforge.jp

URL for this Ticket:
    http://sourceforge.jp/ticket/browse.php?group_id=6231&tid=30083
RSS feed for this Ticket:
    http://sourceforge.jp/ticket/ticket_rss.php?group_id=6231&tid=30083




MolDS-dev メーリングリストの案内
Back to archive index