Menu

#1417 protect realloc

Undefined
wont-fix
nobody
None
Bug_Report
2023-09-22
2023-09-20
No

/src/plugins/contrib/wxContribItems/wxthings/src/matrix2d.cpp lines 899 and 939
Code:
if ( num_points > sizeof_data - num_cols2 )
{
data = (double
)realloc( data, sizeof_data+1000 ); // <- may be better use data2
}

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2023-09-21

    The whole code is a mess, and the first call to realloc is highly suspicious (Why 1000? What about sizeof(double)?)

    I would not bother fixing this.

     
  • Miguel Gimenez

    Miguel Gimenez - 2023-09-22
    • status: open --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB