lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


   void *my_realloc ( void *oldBlock, size_t size, const char * fileName,
   const short lineNumber )
   {
     [...]
             if ( oldBlock )
             {
                     memcpy( newblock, oldBlock, size );
                     [...]


It seems that this memcpy can read past the end of oldBlock, when
growing it.

-- Roberto