Ignore:
Timestamp:
Feb 1, 2015, 6:12:37 PM (10 years ago)
Author:
bird
Message:

string expansion debugged and enabled. fixed access-after-alloc bug in func_sort and could lead to heap corruption.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expand.c

    r2769 r2770  
    256256      v->expand_count++;
    257257      if (   v->expandprog
    258           || (v->expand_count == 10 && kmk_cc_compile_variable_for_expand (v)) )
     258          || (v->expand_count == 3 && kmk_cc_compile_variable_for_expand (v)) )
    259259        o = kmk_exec_expand_to_var_buf (v, o);
    260260      else
     
    10811081      v->value_length = p - v->value;
    10821082      v->value_alloc_len = variable_buffer_length;
     1083      VARIABLE_CHANGED(v);
    10831084
    10841085      /* Restore the variable buffer, but without freeing the current. */
Note: See TracChangeset for help on using the changeset viewer.