Changeset cac1d52


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
6d8e1ab
Parents:
4bdb7bf
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/06/21 19:37:40)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Fixed realloc error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    r4bdb7bf rcac1d52  
    4747        } else if ( size == max_size ) {
    4848                max_size *= 2;
    49                 data = resize( data, max_size ); // HERE (null pointer deref)
    50                 // data = realloc( data, max_size );
     49                data = alloc( max_size, data`realloc );
    5150        }
    5251
Note: See TracChangeset for help on using the changeset viewer.